mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
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>
This commit is contained in:
committed by
David S. Miller
parent
03ba356670
commit
5fd0b838ef
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user