diff options
author | Petr Machata <petrm@nvidia.com> | 2022-03-02 19:31:22 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-03-03 13:37:23 +0300 |
commit | 03ba35667091337d8e632cf4b814f1c1b914609b (patch) | |
tree | 782922ee89c832d65c5cef1a01a793288c56cf63 /include/uapi/linux/rtnetlink.h | |
parent | 0e7788fd76222dba3229eada9162efab185923fc (diff) | |
download | linux-03ba35667091337d8e632cf4b814f1c1b914609b.tar.xz |
net: rtnetlink: Add RTM_SETSTATS
The offloaded HW stats are designed to allow per-netdevice enablement and
disablement. These stats are only accessible through RTM_GETSTATS, and
therefore should be toggled by a RTM_SETSTATS message. Add it, and the
necessary skeleton handler.
Signed-off-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/rtnetlink.h')
-rw-r--r-- | include/uapi/linux/rtnetlink.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/rtnetlink.h b/include/uapi/linux/rtnetlink.h index 0970cb4b1b88..14462dc159fd 100644 --- a/include/uapi/linux/rtnetlink.h +++ b/include/uapi/linux/rtnetlink.h @@ -146,6 +146,8 @@ enum { #define RTM_NEWSTATS RTM_NEWSTATS RTM_GETSTATS = 94, #define RTM_GETSTATS RTM_GETSTATS + RTM_SETSTATS, +#define RTM_SETSTATS RTM_SETSTATS RTM_NEWCACHEREPORT = 96, #define RTM_NEWCACHEREPORT RTM_NEWCACHEREPORT |