openvswitch: Consistently include VLAN header in flow and port stats.
authorBen Pfaff <blp@nicira.com>
Wed, 31 Dec 2014 16:45:46 +0000 (08:45 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Jan 2015 21:14:20 +0000 (16:14 -0500)
commit24cc59d1ebaac54d933dc0b30abcd8bd86193eef
tree8c94b64062a6fa344285a361ddc948da5eda8bf5
parent843925f33fcc293d80acf2c5c8a78adf3344d49b
openvswitch: Consistently include VLAN header in flow and port stats.

Until now, when VLAN acceleration was in use, the bytes of the VLAN header
were not included in port or flow byte counters.  They were however
included when VLAN acceleration was not used.  This commit corrects the
inconsistency, by always including the VLAN header in byte counters.

Previous discussion at
http://openvswitch.org/pipermail/dev/2014-December/049521.html

Reported-by: Motonori Shindo <mshindo@vmware.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Reviewed-by: Flavio Leitner <fbl@sysclose.org>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/flow.c
net/openvswitch/vport.c