]> git.proxmox.com Git - mirror_corosync.git/commit
totemsrp: Reduce MTU to left room second mcast
authorJan Friesse <jfriesse@redhat.com>
Mon, 7 Oct 2019 13:26:22 +0000 (15:26 +0200)
committerJan Friesse <jfriesse@redhat.com>
Wed, 9 Oct 2019 09:48:43 +0000 (11:48 +0200)
commitee8b8993d98b3f6af9c058194228fc534fcd0796
tree2e10cc96f4d9b4113468b5a24ba908e5b49dde48
parentbd11a3380c9cd688eb22ab59369a25c23bb10249
totemsrp: Reduce MTU to left room second mcast

Messages sent during recovery phase are encapsulated so such message has
extra size of mcast structure. This is not so big problem for UDPU,
because most of the switches are able to fragment and defragment packet
but it is problem for knet, because totempg is using maximum packet size
(65536 bytes) and when another header is added during retransmition,
then packet is too large.

Solution is to reduce mtu by 2 * sizeof (struct mcast).

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Fabio M. Di Nitto <fdinitto@redhat.com>
exec/totemsrp.c