]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4: Add reference counting to MAC registeration
authorRony Efraim <ronye@mellanox.com>
Thu, 25 Apr 2013 05:22:25 +0000 (05:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 27 Apr 2013 03:29:13 +0000 (23:29 -0400)
commit3fba74fb47874bacd0ed0f57a598c66455f6726e
tree1aefcbfedf6d4913ea73c361283f87b2132f470e
parentbbaa4d704aedd8fc6250d9abf45afcd498bccc53
net/mlx4: Add reference counting to MAC registeration

Add reference counting to the driver MAC registeration code. This would
be needed for cases where a mac is registered from more than once, e.g
when both the host and the VM driver register the same mac, the host
for mac spoof protection purposes and the VM for its regular needs.

Signed-off-by: Rony Efraim <ronye@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/port.c