| Submitter | WANG Cong |
|---|---|
| Date | Feb. 27, 2013, 3:20 a.m. |
| Message ID | <kgju27$m81$1@ger.gmane.org> |
| Download | mbox | patch |
| Permalink | /patch/223487/ |
| State | RFC |
| Delegated to: | David Miller |
| Headers | show |
Comments
Patch
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c index 5e12dca..3ccb704 100644 --- a/net/ipv4/ip_output.c +++ b/net/ipv4/ip_output.c @@ -845,7 +845,7 @@ static int __ip_append_data(struct sock *sk, csummode = CHECKSUM_PARTIAL; cork->length += length; - if (((length > mtu) || (skb &&skb_is_gso(skb))) && + if (((length + fragheaderlen > mtu) || (skb &&skb_is_gso(skb))) && (sk->sk_protocol == IPPROTO_UDP) && (rt->dst.dev->features & NETIF_F_UFO) && !rt->dst.header_len) {