net/mlx4_en: Protect access to the statistics bitmap
authorEran Ben Elisha <eranbe@mellanox.com>
Mon, 30 Mar 2015 14:45:24 +0000 (17:45 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 31 Mar 2015 20:36:50 +0000 (16:36 -0400)
commit3da8a36cc5c2a172bb42f8dc89638f5b41d7d7a6
treedd68732106614f7711cb3f72e886a2d0c3b5d10b
parent6fcd27354b36fb9234aabeecde337b40d5a16842
net/mlx4_en: Protect access to the statistics bitmap

This will allow parallel access to the statistics bitmap.
A pre-step for adding PFC counters, where the statistics bitmap
can be dynamically changed when modifying the PFC setting.

Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_ethtool.c
drivers/net/ethernet/mellanox/mlx4/en_netdev.c
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h