]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: Don't log mc removal needlessly
authorMintz, Yuval <Yuval.Mintz@cavium.com>
Sat, 24 Jun 2017 12:37:00 +0000 (15:37 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Jun 2017 15:36:56 +0000 (11:36 -0400)
commit5ebc4325c63e025c7e0d3d2a38b6e8c3e154c866
tree80add3385fe6533da4b74db9d350319480c52336
parent3808f8b96479ee0d85dbc55f823274f66e6cfd90
bnx2x: Don't log mc removal needlessly

When mc configuration changes bnx2x_config_mcast() can return 0 for
success, negative for failure and positive for benign reason preventing
its immediate work, e.g., when the command awaits the completion of
a previously sent command.

When removing all configured macs on a 578xx adapter, if a positive
value would be returned driver would errneously log it as an error.

Fixes: f8dfa491f327 ("bnx2x: Don't flush multicast MACs")
Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c