net: rtnetlink: Add RTM_SETSTATS
authorPetr Machata <petrm@nvidia.com>
Wed, 2 Mar 2022 16:31:22 +0000 (18:31 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Mar 2022 10:37:23 +0000 (10:37 +0000)
commit03ba35667091337d8e632cf4b814f1c1b914609b
tree782922ee89c832d65c5cef1a01a793288c56cf63
parent0e7788fd76222dba3229eada9162efab185923fc
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>
include/uapi/linux/rtnetlink.h
net/core/rtnetlink.c
security/selinux/nlmsgtab.c