]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Merge branch 'net-xilinx-axienet-multicast-fixes-and-improvements'
authorJakub Kicinski <kuba@kernel.org>
Mon, 26 Aug 2024 16:52:06 +0000 (09:52 -0700)
committerJakub Kicinski <kuba@kernel.org>
Mon, 26 Aug 2024 16:52:07 +0000 (09:52 -0700)
commit7888173eb18063c15e10d099310a58ab8c3a4b44
tree749b384f74a229e4fe2989bf143a60f527445792
parent5efc9623cfaef22b3492147bf76c2d4d8586c77f
parent749e67d5b297c01b4825315808c9f1c9e7c91d01
Merge branch 'net-xilinx-axienet-multicast-fixes-and-improvements'

Sean Anderson says:

====================
net: xilinx: axienet: Multicast fixes and improvements

This series has a few small patches improving the handling of multicast
addresses. In particular, it makes the driver a whole lot less spammy,
and adjusts things so we aren't in promiscuous mode when we have more
than four multicast addresses (a common occurance on modern systems).

As the hardware has a 4-entry CAM, the ideal method would be to "pack"
multiple addresses into one CAM entry. Something like:

entry.address = address[0] | address[1];
entry.mask = ~(address[0] ^ address[1]);

Which would make the entry match both addresses (along with some others
that would need to be filtered in software).

Mapping addresses to entries in an efficient way is a bit tricky. If
anyone knows of an in-tree example of something like this, I'd be glad
to hear about it.
====================

Link: https://patch.msgid.link/20240822154059.1066595-1-sean.anderson@linux.dev
Signed-off-by: Jakub Kicinski <kuba@kernel.org>