]> 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)
commitd5258449a95dd23eeb693af8975f92b014358073
tree8c94b64062a6fa344285a361ddc948da5eda8bf5
parentc8dfd2a61600c6aa930debb0f1c5f8d5181b29c5
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