]> git.baikalelectronics.ru Git - kernel.git/commit
net: lan966x: Stop processing the MAC entry is port is wrong.
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Sat, 9 Apr 2022 18:41:43 +0000 (20:41 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 12 Apr 2022 03:47:15 +0000 (20:47 -0700)
commit3ca900fccdbeee9a03c381ed3ab2d9466697a032
tree8d2ec3804428f290a4ee013ba02173407cf7d5d0
parentd216c2e1f6f1e51bea57df67da4187ad13d45cf6
net: lan966x: Stop processing the MAC entry is port is wrong.

Currently when getting a new MAC is learn, the HW generates an
interrupt. So then the SW will check the new entry and checks if it
arrived on a correct port. If it didn't just generate a warning.
But this could still crash the system. Therefore stop processing that
entry when an issue is seen.

Fixes: 611e23fc3576c6 ("net: lan966x: add support for interrupts from analyzer")
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/microchip/lan966x/lan966x_mac.c