diff options
| author | Eric Dumazet <[email protected]> | 2016-05-25 16:50:36 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2016-05-26 05:15:49 +0000 |
| commit | 63a664b7e92b14aaa1e1c3e9ae362aa70cf4cefb (patch) | |
| tree | 36783c3dfa580be1c8c90b39dc7f06c921d271a8 /net/lapb/lapb_out.c | |
| parent | sctp: fix double EPs display in sctp_diag (diff) | |
| download | kernel-63a664b7e92b14aaa1e1c3e9ae362aa70cf4cefb.tar.gz kernel-63a664b7e92b14aaa1e1c3e9ae362aa70cf4cefb.zip | |
net/mlx4_en: fix tx_dropped bug
1) mlx4_en_xmit() can increment priv->stats.tx_dropped, but this variable
is overwritten in mlx4_en_DUMP_ETH_STATS().
2) This increment was not SMP safe, as a port might have many TX queues.
Add a per TX ring tx_dropped to fix these issues.
This is u32 as mlx4_en_DUMP_ETH_STATS() will add a 32bit field.
So lets avoid bugs with SNMP agents having to cope with partial
overwraps. (One of these agents being bond_fold_stats())
Signed-off-by: Eric Dumazet <[email protected]>
Reported-by: Willem de Bruijn <[email protected]>
Cc: Eugenia Emantayev <[email protected]>
Acked-by: Alexei Starovoitov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions
