summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2008-03-28 16:23:19 -0700
committerDavid S. Miller <davem@davemloft.net>2008-03-28 16:23:19 -0700
commit32aced7509cb20ef3ec67c9b56f5b55c41dd4f8d (patch)
treea0efa0f46ec27fb45ea3c4caf55ccdc83ed019fb /net
parentd41a95e04ae80b77ddc186d0d97e6b439684adb8 (diff)
downloadop-kernel-dev-32aced7509cb20ef3ec67c9b56f5b55c41dd4f8d.zip
op-kernel-dev-32aced7509cb20ef3ec67c9b56f5b55c41dd4f8d.tar.gz
[NET]: Don't send ICMP_FRAG_NEEDED for GSO packets
Commit 9af3912ec9e30509b76cb376abb65a4d8af27df3 ("[NET] Move DF check to ip_forward") added a new check to send ICMP fragmentation needed for large packets. Unlike the check in ip_finish_output(), it doesn't check for GSO. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/ipv4/ip_forward.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ip_forward.c b/net/ipv4/ip_forward.c
index 0b3b328..a4506c8 100644
--- a/net/ipv4/ip_forward.c
+++ b/net/ipv4/ip_forward.c
@@ -85,7 +85,7 @@ int ip_forward(struct sk_buff *skb)
if (opt->is_strictroute && rt->rt_dst != rt->rt_gateway)
goto sr_failed;
- if (unlikely(skb->len > dst_mtu(&rt->u.dst) &&
+ if (unlikely(skb->len > dst_mtu(&rt->u.dst) && !skb_is_gso(skb) &&
(ip_hdr(skb)->frag_off & htons(IP_DF))) && !skb->local_df) {
IP_INC_STATS(IPSTATS_MIB_FRAGFAILS);
icmp_send(skb, ICMP_DEST_UNREACH, ICMP_FRAG_NEEDED,
OpenPOWER on IntegriCloud