]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1a8fba7ce1684164b753bd860f3abd8d76674882
tree14c772873becfbdfc26a1cf0c9d967ffd118f9d8
parentf462b0f9a71d54146cf6cd2ad5a95e4a8881e1b5
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