]> git.baikalelectronics.ru Git - kernel.git/commit
mlx4: decreasing ref count when removing mac
authorYevgeny Petrilin <yevgenyp@mellanox.co.il>
Thu, 4 Aug 2011 01:05:12 +0000 (01:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Aug 2011 10:36:07 +0000 (03:36 -0700)
commitf1be04d839959bb682a651eecba35ff0ca64ea78
tree5bcc128348cba73f523a74255efd43cb0e865a24
parent03a0bf7a96369a5b331011711b537c323ea55dc5
mlx4: decreasing ref count when removing mac

For older FW versions, when a Mac address removed from Mac table,
we should set 0 for reference count for the corresponding Mac index.
Fixes a bug where removing Mac from the table still left that entry as
invalid.

Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Tested-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mlx4/port.c