aboutsummaryrefslogtreecommitdiffstats
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2016-05-25 16:50:38 +0000
committerDavid S. Miller <[email protected]>2016-05-26 05:15:50 +0000
commit9ed17db17fb01a7be5b84558b768c091bdf8bb41 (patch)
tree43fd2851d5d3984ea4f19dabec28885e8970b61c /net/lapb/lapb_subr.c
parentnet/mlx4_en: clear some TX ring stats in mlx4_en_clear_stats() (diff)
downloadkernel-9ed17db17fb01a7be5b84558b768c091bdf8bb41.tar.gz
kernel-9ed17db17fb01a7be5b84558b768c091bdf8bb41.zip
net/mlx4_en: get rid of ret_stats
mlx4 uses a private struct net_device_stats in a vain attempt to avoid races. This is buggy because multiple cpus could call mlx4_en_get_stats() at the same time, so ret_stats can not guarantee stable results. To fix this, we need to switch to ndo_get_stats64() as this method provides per-thread storage. This allows to reduce mlx4_en_priv bloat. Signed-off-by: Eric Dumazet <[email protected]> Cc: Willem de Bruijn <[email protected]> Cc: Eugenia Emantayev <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions