OSDN Git Service

net: lan966x: Add function lan966x_mac_ip_learn()
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Tue, 4 Jan 2022 15:33:36 +0000 (16:33 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Jan 2022 11:25:13 +0000 (11:25 +0000)
commitfc0c3fe7486f2d3eacef7ef13571f79e92e139cd
tree73a0f4937f1805ee4f6af119e0d49fb51421ed64
parent2a5ab39beb277528d58cac609c0862f8a6c231d3
net: lan966x: Add function lan966x_mac_ip_learn()

Extend mac functionality with the function lan966x_mac_ip_learn. This
function adds an entry in the MAC table for IP multicast addresses.
These entries can copy a frame to the CPU but also can forward on the
front ports.
This functionality is needed for mdb support. In case the CPU and some
of the front ports subscribe to an IP multicast address.

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