]> www.infradead.org Git - users/dwmw2/linux.git/commit
eth: fbnic: Add L2 address programming
authorAlexander Duyck <alexanderduyck@fb.com>
Fri, 12 Jul 2024 15:50:32 +0000 (08:50 -0700)
committerJakub Kicinski <kuba@kernel.org>
Mon, 15 Jul 2024 19:50:44 +0000 (12:50 -0700)
commiteb690ef8d1c2a1b60e8c11721ace1538f027459e
tree8bce2777eff63dfa5e3e0ffe7c77f12f276a958a
parenta29b8eb6e5337f569f4a08937573dce7cc183493
eth: fbnic: Add L2 address programming

Program the Rx TCAM to control L2 forwarding. Since we are in full
control of the NIC we need to make sure we include BMC forwarding
in the rules. When host is not present BMC will program the TCAM
to get onto the network but once we take ownership it's up to
Linux driver to make sure BMC L2 addresses are handled correctly.

Co-developed-by: Sanman Pradhan <sanmanpradhan@meta.com>
Signed-off-by: Sanman Pradhan <sanmanpradhan@meta.com>
Signed-off-by: Alexander Duyck <alexanderduyck@fb.com>
Link: https://patch.msgid.link/172079943202.1778861.4410412697614789017.stgit@ahduyck-xeon-server.home.arpa
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/meta/fbnic/Makefile
drivers/net/ethernet/meta/fbnic/fbnic.h
drivers/net/ethernet/meta/fbnic/fbnic_csr.h
drivers/net/ethernet/meta/fbnic/fbnic_devlink.c
drivers/net/ethernet/meta/fbnic/fbnic_netdev.c
drivers/net/ethernet/meta/fbnic/fbnic_netdev.h
drivers/net/ethernet/meta/fbnic/fbnic_pci.c
drivers/net/ethernet/meta/fbnic/fbnic_rpc.c [new file with mode: 0644]
drivers/net/ethernet/meta/fbnic/fbnic_rpc.h [new file with mode: 0644]