fs: dlm: change allocation limits
authorAlexander Aring <aahringo@redhat.com>
Mon, 1 Mar 2021 22:05:14 +0000 (17:05 -0500)
committerDavid Teigland <teigland@redhat.com>
Tue, 9 Mar 2021 14:56:42 +0000 (08:56 -0600)
commitc45674fbdda138814ca21138475219c96fa5aa1f
tree882c7102f75b410ed00941f244d6ad706fb4d026
parent517461630d1c25ee4dfc1dee80973a64189d6ccf
fs: dlm: change allocation limits

While running tcpkill I experienced invalid header length values while
receiving to check that a node doesn't try to send a invalid dlm message
we also check on applications minimum allocation limit. Also use
DEFAULT_BUFFER_SIZE as maximum allocation limit. The define
LOWCOMMS_MAX_TX_BUFFER_LEN is to calculate maximum buffer limits on
application layer, future midcomms layer will subtract their needs from
this define.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/lowcomms.c