openvswitch: Add meter infrastructure

OVS kernel datapath so far does not support Openflow meter action.
This is the first stab at adding kernel datapath meter support.
This implementation supports only drop band type.

Signed-off-by: Andy Zhou <azhou@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Andy Zhou
2017-11-10 12:09:42 -08:00
committed by David S. Miller
parent 9602c01e57
commit 96fbc13d7e
5 changed files with 674 additions and 2 deletions

View File

@@ -92,6 +92,9 @@ struct datapath {
u32 user_features;
u32 max_headroom;
/* Switch meters. */
struct hlist_head *meters;
};
/**