]> 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)
commit5f60d266b9e97a6924b1fd8b1ba42858ed20df73
tree14c772873becfbdfc26a1cf0c9d967ffd118f9d8
parentd81155c8984a0e491aebb9f6b63e7d6a3a4e66ed
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