[PATCH net-next 0/4] eth: mpnic: L2 address filtering
From: Daniel Zahka
Date: Mon Nov 16 2026 - 16:11:33 EST
The mpnic device has a TCAM that is keyed on DMAC addresses in the Rx
path. Up to this point, the TCAM was unprogrammed, and the default
action was set to pass all traffic to the host. This series programs the
TCAM to filter Rx packets based on DMAC address.
The device, broadcast, sencondary unicast and multicast addresses are
added to the DMAC filter. Promiscuous and all-multicast modes are also
supported by reserving the last entry in the TCAM for inexact matches.
The overall design is similar to fbnic. For each entry in the TCAM, the
driver tracks the lookup key, mask, state, and users of the entry.
Addresses are synced to HW in the ndo_open path, and unsynced in the
ndo_stop path. ndo_set_rx_mode_async and ndo_set_mac_address are
implemented, so the filtered addresses and promiscuity modes can be
updated.
Signed-off-by: Daniel Zahka <daniel.zahka@xxxxxxxxx>
---
Daniel Zahka (4):
eth: mpnic: add filters for dev_addr and broadcast address
eth: mpnic: add promiscuous and all-multicast filters
eth: mpnic: sync unicast and multicast address lists
eth: mpnic: support changing the MAC address
drivers/net/ethernet/meta/mpnic/Makefile | 1 +
drivers/net/ethernet/meta/mpnic/mpnic.h | 3 +
drivers/net/ethernet/meta/mpnic/mpnic_csr.h | 10 ++
drivers/net/ethernet/meta/mpnic/mpnic_init.c | 15 ++-
drivers/net/ethernet/meta/mpnic/mpnic_netdev.c | 116 ++++++++++++++++++++++
drivers/net/ethernet/meta/mpnic/mpnic_rpc.c | 129 +++++++++++++++++++++++++
drivers/net/ethernet/meta/mpnic/mpnic_rpc.h | 51 ++++++++++
7 files changed, 321 insertions(+), 4 deletions(-)
---
base-commit: 7ccc5e05043b1bb84326b19a2b05938d8f7a2ae6
change-id: 20261112-mpnic-l2-oot-2a185cd5f9bd
Best regards,
--
Daniel Zahka <daniel.zahka@xxxxxxxxx>