diff options
author | Petr Machata <petrm@nvidia.com> | 2022-03-02 18:31:23 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-03-03 10:37:23 +0000 |
commit | 5fd0b838efac16046509f7fb100455d0463b9687 (patch) | |
tree | 80eea76ae0907da764446715d31fa04396ab2955 /include/linux/rtnetlink.h | |
parent | 03ba35667091337d8e632cf4b814f1c1b914609b (diff) | |
download | linux-5fd0b838efac16046509f7fb100455d0463b9687.tar.gz linux-5fd0b838efac16046509f7fb100455d0463b9687.tar.bz2 linux-5fd0b838efac16046509f7fb100455d0463b9687.zip |
net: rtnetlink: Add UAPI toggle for IFLA_OFFLOAD_XSTATS_L3_STATS
The offloaded HW stats are designed to allow per-netdevice enablement and
disablement. Add an attribute, IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS,
which should be carried by the RTM_SETSTATS message, and expresses a desire
to toggle L3 offload xstats on or off.
As part of the above, add an exported function rtnl_offload_xstats_notify()
that drivers can use when they have installed or deinstalled the counters
backing the HW stats.
At this point, it is possible to enable, disable and query L3 offload
xstats on netdevices. (However there is no driver actually implementing
these.)
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/linux/rtnetlink.h')
-rw-r--r-- | include/linux/rtnetlink.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/rtnetlink.h b/include/linux/rtnetlink.h index bb9cb84114c1..7f970b16da3a 100644 --- a/include/linux/rtnetlink.h +++ b/include/linux/rtnetlink.h @@ -134,4 +134,7 @@ extern int ndo_dflt_bridge_getlink(struct sk_buff *skb, u32 pid, u32 seq, int (*vlan_fill)(struct sk_buff *skb, struct net_device *dev, u32 filter_mask)); + +extern void rtnl_offload_xstats_notify(struct net_device *dev); + #endif /* __LINUX_RTNETLINK_H */ |