net: lan966x: Extend FDB to support also lag
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Wed, 17 Aug 2022 19:34:48 +0000 (21:34 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Aug 2022 13:00:54 +0000 (14:00 +0100)
commit9be99f2d1d285eeee4033c173ced4a08e2ed5edd
tree65800d375e5be17807f10064de75198d19f02f28
parentcabc9d49333df72fe0f6d58bdcf9057ba341e701
net: lan966x: Extend FDB to support also lag

Offload FDB entries when the original device is a lag interface. Because
all the ports under the lag have the same chip id, which is the chip id
of first port, then add the entries only for the first 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_fdb.c
drivers/net/ethernet/microchip/lan966x/lan966x_switchdev.c