diff options
Diffstat (limited to 'net/ipv4/ip_output.c')
-rw-r--r-- | net/ipv4/ip_output.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c index 4233cbe47052..512a44778cf2 100644 --- a/net/ipv4/ip_output.c +++ b/net/ipv4/ip_output.c | |||
@@ -76,7 +76,6 @@ | |||
76 | #include <linux/igmp.h> | 76 | #include <linux/igmp.h> |
77 | #include <linux/netfilter_ipv4.h> | 77 | #include <linux/netfilter_ipv4.h> |
78 | #include <linux/netfilter_bridge.h> | 78 | #include <linux/netfilter_bridge.h> |
79 | #include <linux/mroute.h> | ||
80 | #include <linux/netlink.h> | 79 | #include <linux/netlink.h> |
81 | #include <linux/tcp.h> | 80 | #include <linux/tcp.h> |
82 | 81 | ||
@@ -912,7 +911,7 @@ static int __ip_append_data(struct sock *sk, | |||
912 | */ | 911 | */ |
913 | if (transhdrlen && | 912 | if (transhdrlen && |
914 | length + fragheaderlen <= mtu && | 913 | length + fragheaderlen <= mtu && |
915 | rt->dst.dev->features & NETIF_F_V4_CSUM && | 914 | rt->dst.dev->features & (NETIF_F_HW_CSUM | NETIF_F_IP_CSUM) && |
916 | !(flags & MSG_MORE) && | 915 | !(flags & MSG_MORE) && |
917 | !exthdrlen) | 916 | !exthdrlen) |
918 | csummode = CHECKSUM_PARTIAL; | 917 | csummode = CHECKSUM_PARTIAL; |
@@ -921,7 +920,7 @@ static int __ip_append_data(struct sock *sk, | |||
921 | if (((length > mtu) || (skb && skb_is_gso(skb))) && | 920 | if (((length > mtu) || (skb && skb_is_gso(skb))) && |
922 | (sk->sk_protocol == IPPROTO_UDP) && | 921 | (sk->sk_protocol == IPPROTO_UDP) && |
923 | (rt->dst.dev->features & NETIF_F_UFO) && !rt->dst.header_len && | 922 | (rt->dst.dev->features & NETIF_F_UFO) && !rt->dst.header_len && |
924 | (sk->sk_type == SOCK_DGRAM)) { | 923 | (sk->sk_type == SOCK_DGRAM) && !sk->sk_no_check_tx) { |
925 | err = ip_ufo_append_data(sk, queue, getfrag, from, length, | 924 | err = ip_ufo_append_data(sk, queue, getfrag, from, length, |
926 | hh_len, fragheaderlen, transhdrlen, | 925 | hh_len, fragheaderlen, transhdrlen, |
927 | maxfraglen, flags); | 926 | maxfraglen, flags); |