net: lan966x: Extend MAC to support also lag interfaces.
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Wed, 17 Aug 2022 19:34:49 +0000 (21:34 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Aug 2022 13:00:54 +0000 (14:00 +0100)
commite09ce97778e849d65f97bf877f7708952720cbac
tree24480f9a6f30d967d59a2c9e8033036aa1cab103
parent9be99f2d1d285eeee4033c173ced4a08e2ed5edd
net: lan966x: Extend MAC to support also lag interfaces.

Extend MAC support to support also lag interfaces:
1. In case an entry is learned on a port that is part of lag interface,
   then notify the upper layers that the entry is learned on the bond
   interface
2. If a port leaves the bond and the port is the first port in the lag
   group, then it is required to update all MAC entries to change the
   destination port.

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microchip/lan966x/lan966x_lag.c
drivers/net/ethernet/microchip/lan966x/lan966x_mac.c
drivers/net/ethernet/microchip/lan966x/lan966x_main.h