summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2020-02-25 11:45:20 +0100
committerDavid S. Miller <davem@davemloft.net>2020-02-25 11:05:54 -0800
commit742b8cceaabc3ed09d4c4d527d9c6311c4925545 (patch)
tree75af3cefe2df3e9a4cd17a6fac51f08252847151 /include/net
parent85b0589ede83d7b4aeb2bc3cb8910183876cd5ee (diff)
downloadlinux-742b8cceaabc3ed09d4c4d527d9c6311c4925545.tar.gz
linux-742b8cceaabc3ed09d4c4d527d9c6311c4925545.tar.bz2
linux-742b8cceaabc3ed09d4c4d527d9c6311c4925545.zip
drop_monitor: extend by passing cookie from driver
If driver passed along the cookie, push it through Netlink. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/drop_monitor.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/drop_monitor.h b/include/net/drop_monitor.h
index 2ab668461463..ddd441a60e03 100644
--- a/include/net/drop_monitor.h
+++ b/include/net/drop_monitor.h
@@ -6,17 +6,20 @@
#include <linux/ktime.h>
#include <linux/netdevice.h>
#include <linux/skbuff.h>
+#include <net/flow_offload.h>
/**
* struct net_dm_hw_metadata - Hardware-supplied packet metadata.
* @trap_group_name: Hardware trap group name.
* @trap_name: Hardware trap name.
* @input_dev: Input netdevice.
+ * @fa_cookie: Flow action user cookie.
*/
struct net_dm_hw_metadata {
const char *trap_group_name;
const char *trap_name;
struct net_device *input_dev;
+ const struct flow_action_cookie *fa_cookie;
};
#if IS_ENABLED(CONFIG_NET_DROP_MONITOR)