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)
commit6ce71acdea24cb742b2929983ca32cb962301bef
tree1aefcbfedf6d4913ea73c361283f87b2132f470e
parentdc8142ea8906ea94a68734c1513b92b3f490fcd5
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