• Shalom Lagziel's avatar
    net/mlx5e: Introducing new statistics rwlock · 868a01a2
    Shalom Lagziel authored
    Introduce a new read/write lock that will protect statistics gathering from
    netdev channels configuration changes.
    e.g. when channels are being replaced (increase/decrease number of rings)
    prevent statistic gathering (ndo_get_stats64) to read the statistics of
    in-active channels (channels that are being closed).
    
    Plus update channels software statistics on the fly when calling
    ndo_get_stats64, and remove it from stats periodic work.
    
    Fixes: 9218b44d ("net/mlx5e: Statistics handling refactoring")
    Signed-off-by: default avatarShalom Lagziel <shaloml@mellanox.com>
    Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
    868a01a2
en_stats.h 6.93 KB