ipvs: Add generic ensure_mtu_is_adequate to handle mixed pools
authorAlex Gartrell <agartrell@fb.com>
Tue, 9 Sep 2014 23:40:27 +0000 (16:40 -0700)
committerSimon Horman <horms@verge.net.au>
Tue, 16 Sep 2014 00:03:37 +0000 (09:03 +0900)
commitc63e4de2be5e1d253adce16dbba57ed42868bc22
treeb47541cf22972001fc9641c0ff8ec1b0478e972f
parent919aa0b2bbcf013467295dc9736db6fb575a4fb0
ipvs: Add generic ensure_mtu_is_adequate to handle mixed pools

The out_rt functions check to see if the mtu is large enough for the packet
and, if not, send icmp messages (TOOBIG or DEST_UNREACH) to the source and
bail out.  We needed the ability to send ICMP from the out_rt_v6 function
and DEST_UNREACH from the out_rt function, so we just pulled it out into a
common function.

Signed-off-by: Alex Gartrell <agartrell@fb.com>
Acked-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Simon Horman <horms@verge.net.au>
net/netfilter/ipvs/ip_vs_xmit.c