]> 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)
commitdc0e36eaf4545e8f57165be7043aed1f09b5c6a5
tree1aefcbfedf6d4913ea73c361283f87b2132f470e
parent2689e94e01f7d20e1c728a55e95bbeea1eefedb8
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