]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: flower: don't try to nack device unregister events
authorJakub Kicinski <jakub.kicinski@netronome.com>
Wed, 7 Nov 2018 01:07:31 +0000 (17:07 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Nov 2018 19:45:22 +0000 (11:45 -0800)
commite10d04b53a95a407546146cc779107df115a342c
tree35cec230da591f135cebedd75bf1f75eaa3d7f1b
parentf26dcde06a6189cdb01e8bc3507e7ddff3a20ebe
nfp: flower: don't try to nack device unregister events

Returning an error from a notifier means we want to veto the change.
We shouldn't veto NETDEV_UNREGISTER just because we couldn't find
the tracking info for given master.

I can't seem to find a way to trigger this unless we have some
other bug, so it's probably not fix-worthy.

While at it move the checking if the netdev really is of interest
into the handling functions, like we do for other events.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: John Hurley <john.hurley@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/flower/lag_conf.c