🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
9 messages
9 total messages Started by Jakub Kicinski Fri, 30 Oct 2026 22:11
Re: [PATCH 00/23] Subject: [PATCH net-next 00/23] net/hpe: add HPE Slingshot NIC drivers
#9037
Author: Jakub Kicinski
Date: Fri, 30 Oct 2026 22:11
7 lines
8317 bytes
On Fri, 30 Oct 2026 13:58:56 -0700 Doug Ledford wrote:
>  416 files changed, 185137 insertions(+)

🤣️
-- 
pw-bot: cr
Re: [PATCH 00/23] Subject: [PATCH net-next 00/23] net/hpe: add HPE Slingshot NIC drivers
#9189
Author: Andrew Lunn
Date: Sat, 31 Oct 2026 20:17
26 lines
9891 bytes
On Fri, Oct 30, 2026 at 03:11:21PM -0700, Jakub Kicinski wrote:
> On Fri, 30 Oct 2026 13:58:56 -0700 Doug Ledford wrote:
> >  416 files changed, 185137 insertions(+)
> 
> 🤣️

Yes, this patchset is going nowhere.

Please throw out everything except the absolute bare minimum.
Ethtool, is not needed in the first patchset. All the UAPI stuff is
not needed. All the sysfs stuff is gone. One PF, no VF. All the custom
debug macros can go, etc.

If you manage to get that absolute minimum base driver merged, you can
then start adding patchsets to flesh out the driver. Eventually you
can get to the controversial stuff, like sysfs, uapi, etc, and you can
argue your case why your driver is special and needs this.

And as a bit of an aside, how much has an LLM been chewing on the code
and spitting out issues? The prompts used by netdev are available, you
can run it yourself. So you might want to address as many as you can
before posting code to the list. That will avoid you reaching v42 of
the absolute bare minimum patchset.

      Andrew
Re: [PATCH 00/23] Subject: [PATCH net-next 00/23] net/hpe: add HPE Slingshot NIC drivers
#9429
Author: Andrew Lunn
Date: Mon, 02 Nov 2026 01:35
15 lines
9477 bytes
> I'll see how fast I can get that done.  But "the bare minimum" is going
> to be more than you are accustomed to.  This hardware does not receive
> Ethernet packets using MAC address like normal Ethernet hardware.  It
> uses a special portal table entry that filters in the Ethernet packets.
> It has the ability to have different filters that receive different
> Ethernet packets and so sorts them before the driver ever sees them.

Can you add a single portal entry which matches everything? Or matches
a single MAC address? KISS.

You can then add on the complexity of adding MAC addresses to the
table in later patchsets.

	Andrew
Re: [PATCH 00/23] Subject: [PATCH net-next 00/23] net/hpe: add HPE Slingshot NIC drivers
#9446
Author: Guenter Roeck
Date: Mon, 02 Nov 2026 03:01
13 lines
15203 bytes
On 11/1/26 17:02, Doug Ledford wrote:
...
> We ran sashiko, but I think our prompts might have been the RDMA
> communities prompts (two different people on the team ran it and we
> merged reports, but I wasn't either one so I don't want to make any
> claims about things I don't know for sure).
> 

I briefly looked into Sashiko's public responses to this patch series.
It did report lots of issues. Am I missing something ?

Guenter
Re: [PATCH 00/23] Subject: [PATCH net-next 00/23] net/hpe: add HPE Slingshot NIC drivers
#9674
Author: Andrew Lunn
Date: Mon, 02 Nov 2026 14:26
75 lines
12641 bytes
On Sun, Nov 01, 2026 at 07:45:24PM -0800, Doug Ledford wrote:
> On 11/1/26 5:35 PM, Andrew Lunn wrote:
> >> I'll see how fast I can get that done.  But "the bare minimum" is going
> >> to be more than you are accustomed to.  This hardware does not receive
> >> Ethernet packets using MAC address like normal Ethernet hardware.  It
> >> uses a special portal table entry that filters in the Ethernet packets.
> >> It has the ability to have different filters that receive different
> >> Ethernet packets and so sorts them before the driver ever sees them.
> > 
> > Can you add a single portal entry which matches everything? Or matches
> > a single MAC address? KISS.
> 
> That's a complex question, and one which I need to go talk to one of the
> hardware engineers about.  It also varies based upon your meaning of
> "everything".  If, by everything you means essentially promiscuous mode,
> then that's not a good idea.  On the fabric there is Ethernet traffic,
> but there is also Slingshot traffic.  They use totally different frame
> types.  If you truly go for "everything", you'll get Slingshot traffic
> along with Ethernet traffic and you'll be throwing away tons of garbage
> and generally wondering what's going on.

The point is you want a very simple driver which it is possible to
review.

This is one of those 0, 1, many cases. Just having one portal entry
means you don't need any allocation algorithm, you don't need recovery
when it overflows, you don't need to be able to replace it, reference
counting, etc. It gives you a starting point to expand later in a
followup patch set which adds all these things.

The network stack is happy to handle promiscuous mode, it does it all
the time when you use ethtool and put the interface into promisc mode.
It is clearly not as efficient as having the hardware doing filtering,
but it works.

> If by "everything" you just
> mean "all Ethernet traffic on a single portal entry", that's when I have
> to go talk to the hardware engineers.  They have different lists they
> use for Ethernet and I can't say for certain that the hardware will
> allow not using those lists.  For instance, one of the lists might be
> specifically for packets that have been fragmented and if you don't use
> that list for those packets it may not receive them at all.

Think about this from the other direction. How does promisc mode work?

> The card has a burned in MAC address.

That is one of the MAC addresses it needs to receive. But when you
come to implement .ndo_set_rx_mode you are given a list of unicast and
multicast MAC addresses you are supposed to receive. And if the
hardware cannot do a perfect match, you do a less perfect match and
let the stack deal with the rest.

> I did have the AI do a full analysis of what you requested.  A bare
> minimal driver.  It passed this back (just giving the summary, not the
> full report):
> 
> Estimated total for a C2-only, PF-only Ethernet series:
> 
> ss1 about 19–20k
> SL about 15–20k
> headers about 15–20k
> That gives roughly 50–60k lines, or about 65k if C1 support stays.

How does it define bare minimum.

If you have thrown out ethtool, you cannot change or report the link
speed. If you cannot change the link speed, and you have followed IEEE
802.3, your PCS will probably just come up when powered on, since the
standard gives the registers sensible defaults. So all your PCS driver
needs to do is poll for link. A typical PCS driver is around 2K lines
of code, and that actually does more.

    Andrew
Re: [PATCH 00/23] Subject: [PATCH net-next 00/23] net/hpe: add HPE Slingshot NIC drivers
#9877
Author: Andrew Lunn
Date: Mon, 02 Nov 2026 17:39
10 lines
9248 bytes
> Our only allowed AI inside HPE is Github CoPilot.

Now think about that you are posting the driver to a public mailing
list, to be archive forever. All your customers have the driver, there
is nothing secret in the driver. It is GPL licensed code.

Does this policy make any sense, in this case?

     Andrew
Re: [PATCH 00/23] Subject: [PATCH net-next 00/23] net/hpe: add HPE Slingshot NIC drivers
#10974
Author: Jason Gunthorpe
Date: Wed, 04 Nov 2026 13:39
17 lines
12795 bytes
On Tue, Nov 03, 2026 at 08:21:05PM -0800, Doug Ledford wrote:
> Top-posting an executive summary: HPE's ask is whether we should submit
> this driver through the netdev community or the rdma community. HPE
> prefers netdev, with RDMA as an aux driver, but needs the maintainers’
> call. A minimal Ethernet driver is about 48k lines plus 36k lines of
> mostly machine-generated headers (details below).

It depends on a simple question: can you create a functional ultra
ethernet device without a netdev and without an IP or routing table?
Like IB?

If yes then maybe you could do RDMA first.

If no, then you must get a netdev first.

Jason
Re: [PATCH 00/23] Subject: [PATCH net-next 00/23] net/hpe: add HPE Slingshot NIC drivers
#11017
Author: Andrew Lunn
Date: Wed, 04 Nov 2026 14:48
43 lines
11159 bytes
> My first request was an answer to the question: Should this driver go
> through the netdev community or should it go through the rdma community?

Does it actually make a difference? You need a driver which is
reviewable. Either the netdev community or the RDMA community needs to
review it. Being more of an embedded person, i don't follow RDMA, so
don't know its policies. Maybe they will accept much bigger patchsets
for review than netdev?

But you need to be careful. If you go the RDMA route, you cannot use
any netdev UAPI APIs except in your thin layer on top. Is that
possible?

A bit of an aside. Do you have the complete history of the driver?
What did the first 10 patches do? When bringing up new hardware, you
start small and get a little piece working. In a traditional Ethernet
driver, you get a base driver just probing and printing Hello
World. You then might write an MDIO bus driver, you can see the MDIO
and MDC signals wiggle on an oscilloscope, and then find the PHY.

I'm assuming you did something similar, small bits of code you could
somehow test. Those small bits of code, step by step development, are
generally easy to review.

> The second request, assuming the netdev community decided that this
> driver could/should go through here, was guidance on the sysfs usage.

Generally, none. We just want a plain, boring netdev, which looks the
same as every other plain boring netdev in the kernel. OS 101, the OS
is there to abstract over the hardware so all hardware looks the same.

Now, if your sysfs is controlling something described in 802.3,
something which other vendors are likely to implement, them you should
submit patches which make it an official UAPI, which all vendors can
use. Extend ethtool etc.

You can use fwctl. But you need to be careful. The netdev policy is
that it cannot be used in a netdev. You cannot use it for anything
which is networking, defined in 802.1/802.3 etc. But you can use it in
your base driver, for anything which is not 802.1/802.3 etc.

	Andrew
Re: [PATCH 00/23] Subject: [PATCH net-next 00/23] net/hpe: add HPE Slingshot NIC drivers
#11022
Author: Jason Gunthorpe
Date: Wed, 04 Nov 2026 15:04
38 lines
13744 bytes
On Wed, Nov 04, 2026 at 03:48:58PM +0100, Andrew Lunn wrote:

> A bit of an aside. Do you have the complete history of the driver?
> What did the first 10 patches do? When bringing up new hardware, you
> start small and get a little piece working. 

If you are implementing a driver from a datasheet, sure.

However a device like this was almost certainly co-designed in a chip
simulator along side the HW and by the time the HW was done they had a
mostly complete driver ready to go. The actual baked chip probably
never ran a driver like you are imagining.

> I'm assuming you did something similar, small bits of code you could
> somehow test. Those small bits of code, step by step development, are
> generally easy to review.

When you are co-designing with a chip simulator things work
differently, you'd focus on the more risky parts of the IP and do
partial driver flows and so on to vet things out. Lots of carefully
orchestrated shortcuts. Then you take that and assemble a complete
driver to run more complete sim passes. As this progresses the HW is
changing underneath and the SW is following along.

So it is completely understandable they ended up with a completed
driver at the end of the process rather than a bunch of logical small
steps.

> Generally, none. We just want a plain, boring netdev, which looks the
> same as every other plain boring netdev in the kernel. OS 101, the OS
> is there to abstract over the hardware so all hardware looks the same.

Yeah, this is a reasonable place to start. I also discourage any uAPI
introduction into any new drivers. Start with the basics then we can
talk about why it needs new uAPI point by point.

Jason
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads