diff options
author | Andy Zhou <azhou@ovn.org> | 2017-11-10 12:09:42 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-13 10:37:07 +0900 |
commit | 96fbc13d7e770b542d2d1fcf700d0baadc6e8063 (patch) | |
tree | a5af29f888531a46399e77f4cbf63fdbf36adb3e /net/openvswitch/datapath.h | |
parent | 9602c01e57f7b868d748c2ba2aef0efa64b71ffc (diff) | |
download | talos-obmc-linux-96fbc13d7e770b542d2d1fcf700d0baadc6e8063.tar.gz talos-obmc-linux-96fbc13d7e770b542d2d1fcf700d0baadc6e8063.zip |
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>
Diffstat (limited to 'net/openvswitch/datapath.h')
-rw-r--r-- | net/openvswitch/datapath.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/openvswitch/datapath.h b/net/openvswitch/datapath.h index 954c4ed465a5..5d2997b42460 100644 --- a/net/openvswitch/datapath.h +++ b/net/openvswitch/datapath.h @@ -92,6 +92,9 @@ struct datapath { u32 user_features; u32 max_headroom; + + /* Switch meters. */ + struct hlist_head *meters; }; /** |