* [ethernet/broadcom/bgmac]: Implement software multicast filter clear
@ 2025-04-13 7:25 Ujwal Kundur
2025-04-17 17:56 ` Florian Fainelli
0 siblings, 1 reply; 3+ messages in thread
From: Ujwal Kundur @ 2025-04-13 7:25 UTC (permalink / raw)
To: rafal, bcm-kernel-feedback-list
Cc: andrew+netdev, davem, edumazet, kuba, pabeni, netdev,
linux-kernel, shuah
Hi,
I'm trying to work on a few TODOs in the
drivers/net/ethernet/broadcom/bgmac.c driver code and came across the
"Clear software multicast filter list" item.
I tried comparing the multicast filter implementation of the
sb1250-mac.c driver for inspiration but realized that most of the code
for bgmac has been written by reverse-engineering the specs:
hhttps://bcm-v4.sipsolutions.net/Specification/
I'd like to try my hand at this if there are documents/guides
around this topic or if there's a canonical source for the binary that
I can try reverse engineering. Please let me know if you have any
leads/advice.
Apologies if this is misdirected, I've just started to get into
Linux kernel development / networking stack.
Thanks,
Ujwal Kundur
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [ethernet/broadcom/bgmac]: Implement software multicast filter clear
2025-04-13 7:25 [ethernet/broadcom/bgmac]: Implement software multicast filter clear Ujwal Kundur
@ 2025-04-17 17:56 ` Florian Fainelli
2025-04-20 12:58 ` Ujwal Kundur
0 siblings, 1 reply; 3+ messages in thread
From: Florian Fainelli @ 2025-04-17 17:56 UTC (permalink / raw)
To: Ujwal Kundur, rafal, bcm-kernel-feedback-list
Cc: andrew+netdev, davem, edumazet, kuba, pabeni, netdev,
linux-kernel, shuah
Howdy,
On 4/13/25 00:25, Ujwal Kundur wrote:
> Hi,
> I'm trying to work on a few TODOs in the
> drivers/net/ethernet/broadcom/bgmac.c driver code and came across the
> "Clear software multicast filter list" item.
> I tried comparing the multicast filter implementation of the
> sb1250-mac.c driver for inspiration but realized that most of the code
> for bgmac has been written by reverse-engineering the specs:
> hhttps://bcm-v4.sipsolutions.net/Specification/
>
> I'd like to try my hand at this if there are documents/guides
> around this topic or if there's a canonical source for the binary that
> I can try reverse engineering. Please let me know if you have any
> leads/advice.
Given that these controllers are always interfaced with either an
integrated or an external Ethernet switch chip, the design was done
assuming that the switch will be operated in managed mode and multicast
filtering will be done on the switch side.
It's been a while since I looked at that part of the DSA and bridge
stack, but we should be pretty close to having that capability nowadays.
--
Florian
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ethernet/broadcom/bgmac]: Implement software multicast filter clear
2025-04-17 17:56 ` Florian Fainelli
@ 2025-04-20 12:58 ` Ujwal Kundur
0 siblings, 0 replies; 3+ messages in thread
From: Ujwal Kundur @ 2025-04-20 12:58 UTC (permalink / raw)
To: Florian Fainelli
Cc: rafal, bcm-kernel-feedback-list, andrew+netdev, davem, edumazet,
kuba, pabeni, netdev, linux-kernel, shuah
Hello!
> Given that these controllers are always interfaced with either an
> integrated or an external Ethernet switch chip, the design was done
> assuming that the switch will be operated in managed mode and multicast
> filtering will be done on the switch side.
Thanks for the info, I wasn't aware of this. I infer that this is
relevant from your message and the codebase:
https://docs.kernel.org/networking/dsa/dsa.html
If I understand correctly, this TODO is basically a no-op because DSA
already implements `dsa_mc_add` / `dsa_mc_del`
for handling multicast addresses on the switch side.
I'll hop over to `bcnxt` as I see some TODOs there, or find something
easier to work with for starters. Thanks again.
--- Ujwal.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-04-20 12:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-13 7:25 [ethernet/broadcom/bgmac]: Implement software multicast filter clear Ujwal Kundur
2025-04-17 17:56 ` Florian Fainelli
2025-04-20 12:58 ` Ujwal Kundur
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®