mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH net-next 0/4] eth: mpnic: L2 address filtering
@ 2026-11-16 21:11 Daniel Zahka
  2026-11-16 21:11 ` [PATCH net-next 1/4] eth: mpnic: add filters for dev_addr and broadcast address Daniel Zahka
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Daniel Zahka @ 2026-11-16 21:11 UTC (permalink / raw)
  To: Alexander Duyck, Jakub Kicinski, kernel-team, Andrew Lunn,
	David S. Miller, Eric Dumazet, Paolo Abeni, Dimitri Daskalakis,
	Mohsin Bashir
  Cc: linux-kernel, netdev, Daniel Zahka

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@gmail.com>
---
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@gmail.com>


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-11-16 21:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-16 21:11 [PATCH net-next 0/4] eth: mpnic: L2 address filtering Daniel Zahka
2026-11-16 21:11 ` [PATCH net-next 1/4] eth: mpnic: add filters for dev_addr and broadcast address Daniel Zahka
2026-11-16 21:11 ` [PATCH net-next 2/4] eth: mpnic: add promiscuous and all-multicast filters Daniel Zahka
2026-11-16 21:11 ` [PATCH net-next 3/4] eth: mpnic: sync unicast and multicast address lists Daniel Zahka
2026-11-16 21:11 ` [PATCH net-next 4/4] eth: mpnic: support changing the MAC address Daniel Zahka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®