]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ipvs: IPv6 MTU checking cleanup and bugfix
authorJesper Dangaard Brouer <brouer@redhat.com>
Tue, 28 Aug 2012 20:05:51 +0000 (22:05 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 10 Jun 2013 09:43:39 +0000 (11:43 +0200)
commit9df2c9ad3bafd141a5e76b3d695aed0e37fac5c4
treea8e3243e68e6f6813b99d1682e8479954c9dfbdb
parentec3dc8cdeadcbbac55e837d5931131ec5464f508
ipvs: IPv6 MTU checking cleanup and bugfix

Cleaning up the IPv6 MTU checking in the IPVS xmit code, by using
a common helper function __mtu_check_toobig_v6().

The MTU check for tunnel mode can also use this helper as
ntohs(old_iph->payload_len) + sizeof(struct ipv6hdr) is qual to
skb->len.  And the 'mtu' variable have been adjusted before
calling helper.

Notice, this also fixes a bug, as the the MTU check in ip_vs_dr_xmit_v6()
were missing a check for skb_is_gso().

This bug e.g. caused issues for KVM IPVS setups, where different
Segmentation Offloading techniques are utilized, between guests,
via the virtio driver.  This resulted in very bad performance,
due to the ICMPv6 "too big" messages didn't affect the sender.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
(cherry picked from commit 590e3f79a21edd2e9857ac3ced25ba6b2a491ef8)
Signed-off-by: Willy Tarreau <w@1wt.eu>
net/netfilter/ipvs/ip_vs_xmit.c