summaryrefslogtreecommitdiff
path: root/include/uapi/linux/net_dropmon.h
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@mellanox.com>2019-08-17 16:28:16 +0300
committerDavid S. Miller <davem@davemloft.net>2019-08-17 22:40:08 +0300
commit8e94c3bc922e70225bd35891c8e6002bddd984eb (patch)
treed3a1680f6591145a6b7659fac87658dde601cb03 /include/uapi/linux/net_dropmon.h
parentd40e1deb930f4bd51a5214983e50aafc26db686e (diff)
downloadlinux-8e94c3bc922e70225bd35891c8e6002bddd984eb.tar.xz
drop_monitor: Allow user to start monitoring hardware drops
Drop monitor has start and stop commands, but so far these were only used to start and stop monitoring of software drops. Now that drop monitor can also monitor hardware drops, we should allow the user to control these as well. Do that by adding SW and HW flags to these commands. If no flag is specified, then only start / stop monitoring software drops. This is done in order to maintain backward-compatibility with existing user space applications. Signed-off-by: Ido Schimmel <idosch@mellanox.com> Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/net_dropmon.h')
-rw-r--r--include/uapi/linux/net_dropmon.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/net_dropmon.h b/include/uapi/linux/net_dropmon.h
index 3bddc9ec978c..75a35dccb675 100644
--- a/include/uapi/linux/net_dropmon.h
+++ b/include/uapi/linux/net_dropmon.h
@@ -90,6 +90,8 @@ enum net_dm_attr {
NET_DM_ATTR_HW_ENTRIES, /* nested */
NET_DM_ATTR_HW_ENTRY, /* nested */
NET_DM_ATTR_HW_TRAP_COUNT, /* u32 */
+ NET_DM_ATTR_SW_DROPS, /* flag */
+ NET_DM_ATTR_HW_DROPS, /* flag */
__NET_DM_ATTR_MAX,
NET_DM_ATTR_MAX = __NET_DM_ATTR_MAX - 1