]> git.baikalelectronics.ru Git - kernel.git/commit
net: lan966x: add mactable support
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Mon, 29 Nov 2021 12:43:57 +0000 (13:43 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Nov 2021 12:58:38 +0000 (12:58 +0000)
commit178db1b95c6dacc65819f484bef6ac17bd84e87d
treeb786f8628f64ba382af31447944e5f1545058066
parentbb48b7a2878d288ca22a5bab0ef56b9a5781b85c
net: lan966x: add mactable support

This patch adds support for MAC table operations like add and forget.
Also add the functionality to read the MAC address from DT, if there is
no MAC set in DT it would use a random one.

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microchip/lan966x/Makefile
drivers/net/ethernet/microchip/lan966x/lan966x_mac.c [new file with mode: 0644]
drivers/net/ethernet/microchip/lan966x/lan966x_main.c
drivers/net/ethernet/microchip/lan966x/lan966x_main.h