RDMA/nes: Use atomic counters for CM listener create and destroy
After running long iterative MPI tests, sometimes ethtool reports a "CM Destroy Listener" count more than the "CM Create Listener" count. This inconsistency is fixed by making counter variables atomic. Signed-off-by: Faisal Latif <faisal.latif@intel.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
This commit is contained in:

committed by
Roland Dreier

parent
676ad58553
commit
6e10d2e407
@@ -1230,8 +1230,8 @@ static void nes_netdev_get_ethtool_stats(struct net_device *netdev,
|
||||
target_stat_values[++index] = cm_packets_received;
|
||||
target_stat_values[++index] = cm_packets_dropped;
|
||||
target_stat_values[++index] = cm_packets_retrans;
|
||||
target_stat_values[++index] = cm_listens_created;
|
||||
target_stat_values[++index] = cm_listens_destroyed;
|
||||
target_stat_values[++index] = atomic_read(&cm_listens_created);
|
||||
target_stat_values[++index] = atomic_read(&cm_listens_destroyed);
|
||||
target_stat_values[++index] = cm_backlog_drops;
|
||||
target_stat_values[++index] = atomic_read(&cm_loopbacks);
|
||||
target_stat_values[++index] = atomic_read(&cm_nodes_created);
|
||||
|
Reference in New Issue
Block a user