]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_core: Reset counters data when freed
authorEran Ben Elisha <eranbe@mellanox.com>
Mon, 15 Jun 2015 14:58:57 +0000 (17:58 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Jun 2015 00:23:01 +0000 (17:23 -0700)
commitc44de48e57ff0c28327585d3c9568fa9da04d7c8
tree0307b405d7a951e7ed6cd5364a405d9a64fa3a2e
parent1a1c5f21f2cabd75a0bfe43b83921660deebb007
net/mlx4_core: Reset counters data when freed

Add resetting the counter data to the free counter flow, so the counter's
data won't be accessible anymore if querying the counter. Also, on next
counter allocation (to another VM for example), it will be fresh and clear.

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/main.c
drivers/net/ethernet/mellanox/mlx4/mlx4.h