ngbe_setup_tc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ngbe_setup_tc(9) β€” the kernel API manual, bestie edition

Okay so welcome to the Kernel API Manual page for ngbe_setup_tc(9) β€” yes that (9) means it lives in the kernel-y section, iykyk. This is the little routine that configures your net_device for multiple traffic classes, and honestly? It's giving quiet overachiever. Let's get into it ✨


πŸŽ€ NAME πŸŽ€

ngbe_setup_tc β€” routine to configure net_device for multiple traffic classes.

Like, that's her whole job. No cap. She takes a net device and gets it set up with more than one traffic class. πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

int ngbe_setup_tc (struct net_device *dev , u8 tc );

That's the whole signature, bestie β€” returns an int, takes a struct net_device * and a u8. Nothing extra, nothing missing. 🫢


🌸 ARGUMENTS 🌸

  • dev β€” the net device to configure. This is the main character of the call, the thing getting all dressed up with traffic classes.
  • tc β€” the number of traffic classes to enable. It's a u8, so keep it cute and keep it in range.

⭐ SEE ALSO ⭐

Okay so the kernel file you wanna go snoop in is literally right here:

./drivers/net/ethernet/wangxun/ngbe/ngbe_main.c

And here's the whole bestie friend group of related pages β€” go say hi to all of them:


πŸ’€ Reminder to my future self: this page gives you the signature, the two arguments, and the related pages. It does not spill extra tea about return values or error behaviour, so don't go inventing any. Periodt.

That's the whole page, babe β€” short, sweet, and extremely on brand. πŸ’…

Source/version note: the footer traces back to ./drivers/net/ethernet/wangxun..., dated October 2026, and it's still filed under ngbe_setup_tc(9). Mwah πŸ’‹ β€” go forth and configure those traffic classes, icon. πŸŒˆπŸ‘‘

πŸ“¦ where this page comes from