From: Sean Anderson <sean.anderson@linux.dev>
To: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>,
netdev@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org,
Eric Dumazet <edumazet@google.com>,
Michal Simek <michal.simek@amd.com>, Andrew Lunn <andrew@lunn.ch>,
Daniel Borkmann <daniel@iogearbox.net>,
"David S . Miller" <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>,
linux-kernel@vger.kernel.org, Paolo Abeni <pabeni@redhat.com>,
Sean Anderson <sean.anderson@linux.dev>
Subject: [PATCH net-next v3 0/5] net: xilinx: axienet: Multicast fixes and improvements
Date: Thu, 22 Aug 2024 11:40:54 -0400 [thread overview]
Message-ID: <20240822154059.1066595-1-sean.anderson@linux.dev> (raw)
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.
Changes in v3:
- Rebase onto net-next/main
Changes in v2:
- Split off IFF_PROMISC change from printing changes
Sean Anderson (5):
net: xilinx: axienet: Always disable promiscuous mode
net: xilinx: axienet: Fix dangling multicast addresses
net: xilinx: axienet: Don't print if we go into promiscuous mode
net: xilinx: axienet: Don't set IFF_PROMISC in ndev->flags
net: xilinx: axienet: Support IFF_ALLMULTI
drivers/net/ethernet/xilinx/xilinx_axienet.h | 3 ++
.../net/ethernet/xilinx/xilinx_axienet_main.c | 52 +++++++++----------
2 files changed, 29 insertions(+), 26 deletions(-)
--
2.35.1.1320.gc452695387.dirty
next reply other threads:[~2024-08-22 15:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-22 15:40 Sean Anderson [this message]
2024-08-22 15:40 ` [PATCH net-next v3 1/5] net: xilinx: axienet: Always disable promiscuous mode Sean Anderson
2024-08-22 15:40 ` [PATCH net-next v3 2/5] net: xilinx: axienet: Fix dangling multicast addresses Sean Anderson
2024-08-22 15:40 ` [PATCH net-next v3 3/5] net: xilinx: axienet: Don't print if we go into promiscuous mode Sean Anderson
2024-08-22 15:40 ` [PATCH net-next v3 4/5] net: xilinx: axienet: Don't set IFF_PROMISC in ndev->flags Sean Anderson
2024-08-22 15:40 ` [PATCH net-next v3 5/5] net: xilinx: axienet: Support IFF_ALLMULTI Sean Anderson
2024-08-22 20:10 ` [PATCH net-next v3 0/5] net: xilinx: axienet: Multicast fixes and improvements patchwork-bot+netdevbpf
2024-08-26 17:00 ` patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240822154059.1066595-1-sean.anderson@linux.dev \
--to=sean.anderson@linux.dev \
--cc=andrew@lunn.ch \
--cc=daniel@iogearbox.net \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michal.simek@amd.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=radhey.shyam.pandey@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®