]> git.baikalelectronics.ru Git - kernel.git/commit
inet: Make tunnel RX/TX byte counters more consistent
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 9 Oct 2008 19:03:17 +0000 (12:03 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Oct 2008 19:03:17 +0000 (12:03 -0700)
commit734fb51bc7e8445ff4c32974b5ceda51c2b189d9
tree68ade9b285112f8430ba29772f8318f0cb0553ed
parentc9b762d7944a55c9076cf582e04d3c420ed43782
inet: Make tunnel RX/TX byte counters more consistent

This patch makes the RX/TX byte counters for IPIP, GRE and SIT more
consistent.  Previously we included the external IP headers on the
way out but not when the packet is inbound.

The new scheme is to count payload only in both directions.  For
IPIP and SIT this simply means the exclusion of the external IP
header.  For GRE this means that we exclude the GRE header as
well.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ipip.h
net/ipv4/ip_gre.c