net: core: handle encapsulation offloads when computing segment lengths
authorFlorian Westphal <fw@strlen.de>
Mon, 20 Oct 2014 11:49:18 +0000 (13:49 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Oct 2014 16:38:13 +0000 (12:38 -0400)
commitf993bc25e5196e60514c216d0bca0f600de64af8
tree14c772873becfbdfc26a1cf0c9d967ffd118f9d8
parent330966e501ffe282d7184fde4518d5e0c24bc7f8
net: core: handle encapsulation offloads when computing segment lengths

if ->encapsulation is set we have to use inner_tcp_hdrlen and add the
size of the inner network headers too.

This is 'mostly harmless'; tbf might send skb that is slightly over
quota or drop skb even if it would have fit.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/skbuff.c