summaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-11 09:14:09 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-12 19:29:09 -0700
commit54fc0c32307d6805304858be92994b76a0b5b0d6 (patch)
tree60f5cc8e1bd467b5384ae018dbcbbf21ae292fc5 /net/ipv6
parent63364a508d24944abb0975bd823cb11367c56283 (diff)
downloadlinux-stable-54fc0c32307d6805304858be92994b76a0b5b0d6.tar.gz
linux-stable-54fc0c32307d6805304858be92994b76a0b5b0d6.tar.bz2
linux-stable-54fc0c32307d6805304858be92994b76a0b5b0d6.zip
revert "net: account for current skb length when deciding about UFO"
This reverts commit ef09c9ff343122a0b245416066992d096416ff19 which is commit a5cb659bbc1c8644efa0c3138a757a1e432a4880 upstream as it causes merge issues with later patches that are much more important... Cc: Michal Kubecek <mkubecek@suse.cz> Cc: Vlad Yasevich <vyasevic@redhat.com> Cc: David S. Miller <davem@davemloft.net> Cc: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/ip6_output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c
index 0de3245ea42f..a7a5790e28e4 100644
--- a/net/ipv6/ip6_output.c
+++ b/net/ipv6/ip6_output.c
@@ -1357,7 +1357,7 @@ emsgsize:
*/
cork->length += length;
- if ((((length + (skb ? skb->len : headersize)) > mtu) ||
+ if ((((length + fragheaderlen) > mtu) ||
(skb && skb_is_gso(skb))) &&
(sk->sk_protocol == IPPROTO_UDP) &&
(rt->dst.dev->features & NETIF_F_UFO) &&