]> git.baikalelectronics.ru Git - kernel.git/commit
gre: Use inner mac length when computing tunnel length
authorTom Herbert <therbert@google.com>
Thu, 30 Oct 2014 15:40:56 +0000 (08:40 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Oct 2014 23:51:56 +0000 (19:51 -0400)
commit1d5c1990430deb9722a8e5336e558061d61ba428
treeb9b2c17b648ee9f485c9c8751ff1a3d4c781f77a
parent3b299c37a97f03dcaf31d39fdb46b797c78d6415
gre: Use inner mac length when computing tunnel length

Currently, skb_inner_network_header is used but this does not account
for Ethernet header for ETH_P_TEB. Use skb_inner_mac_header which
handles TEB and also should work with IP encapsulation in which case
inner mac and inner network headers are the same.

Tested: Ran TCP_STREAM over GRE, worked as expected.

Signed-off-by: Tom Herbert <therbert@google.com>
Acked-by: Alexander Duyck <alexander.h.duyck@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/gre_offload.c