bridge: Have tx_bytes count headers like rx_bytes.
authorAshish Sharma <ashishsharma@google.com>
Sat, 8 Oct 2011 00:54:16 +0000 (17:54 -0700)
committerJP Abgrall <jpa@google.com>
Sat, 8 Oct 2011 00:54:30 +0000 (17:54 -0700)
commit3bc18c7282298005d4726de14e19c3f5c807bb51
tree96840870818dd590c8fc41f54c6fd301f9baa01a
parentca37d833b0de24f87502c5df5234f4bf38884830
bridge: Have tx_bytes count headers like rx_bytes.

Since rx_bytes accounting does not include Ethernet Headers in
br_input.c, excluding ETH_HLEN on the transmit path for consistent
measurement of packet length on both the Tx and Rx chains.

The clean way would be for Rx to include the eth header, but the
skb len has already been adjusted by the time the br code sees the skb.
This is only a temporary workaround until we can completely ignore or
cleanly fix the skb->len handling.

Change-Id: I910de95a4686b2119da7f1f326e2154ef31f9972
Signed-off-by: Ashish Sharma <ashishsharma@google.com>
net/bridge/br_device.c