summaryrefslogtreecommitdiff
path: root/net/openvswitch/datapath.h
diff options
context:
space:
mode:
authorAndy Zhou <azhou@ovn.org>2017-11-10 23:09:42 +0300
committerDavid S. Miller <davem@davemloft.net>2017-11-13 04:37:07 +0300
commit96fbc13d7e770b542d2d1fcf700d0baadc6e8063 (patch)
treea5af29f888531a46399e77f4cbf63fdbf36adb3e /net/openvswitch/datapath.h
parent9602c01e57f7b868d748c2ba2aef0efa64b71ffc (diff)
downloadlinux-96fbc13d7e770b542d2d1fcf700d0baadc6e8063.tar.xz
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.h3
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;
};
/**