• Oz Shlomo's avatar
    net/mlx5e: TC, support per action stats · 2b68d659
    Oz Shlomo authored
    Extend the action stats callback implementation to update stats for actions
    that are associated with hw counters.
    Note that the callback may be called from tc action utility or from tc
    flower. Both apis expect the driver to return the stats difference from
    the last update. As such, query the raw counter value and maintain
    the diff from the last api call in the tc layer, instead of the fs_core
    layer.
    Signed-off-by: default avatarOz Shlomo <ozsh@nvidia.com>
    Reviewed-by: default avatarRoi Dayan <roid@nvidia.com>
    Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
    2b68d659
en_tc.c 155 KB