• Petr Machata's avatar
    net: rtnetlink: Add UAPI toggle for IFLA_OFFLOAD_XSTATS_L3_STATS · 5fd0b838
    Petr Machata authored
    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: default avatarPetr Machata <petrm@nvidia.com>
    Signed-off-by: default avatarIdo Schimmel <idosch@nvidia.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    5fd0b838
rtnetlink.c 147 KB