]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3faf75925b1d4d19c74e153c553f3333f0e9ec4f
tree8c94b64062a6fa344285a361ddc948da5eda8bf5
parentdc755452999af98196ec91a61605e4e9f2e5274c
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