fcoe_netdev_config(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… fcoe_netdev_config(9) β€” the Kernel API Manual glow-up

okay so bestie, we're in the Kernel API Manual today and the main character is fcoe_netdev_config(9). she hooks a net device up for SW FCoE and she is very particular about when you call her. let's get into it πŸŽ€


✨ NAME ✨

fcoe_netdev_config β€” literally "Set up net devive for SW FCoE"

(yes, "devive". that's exactly how it's spelled in the source, she's quirky like that, we respect it πŸ™ˆ β€” it means net device, iykyk)


🌸 SYNOPSIS 🌸

int fcoe_netdev_config (struct fc_lport *lport , struct net_device *netdev );

like, you hand her a local port and a net device and she returns an int. that's the whole vibe check. πŸ’«


πŸ¦‹ ARGUMENTS πŸ¦‹

  • lport β€” the local port that's associated with the net device. your FC side of the situationship πŸ’œ
  • netdev β€” the associated net device. the network-y half. they come as a pair, no cap 🫢

⭐ DESCRIPTION ⭐

okay so the one thing you actually cannot fumble: this function must be called after fcoe_lport_config, because it will use the local port mutex. so fcoe_lport_config first, fcoe_netdev_config second. order matters, bestie, it's giving main-character sequencing πŸ‘‘

not me stressing this β€” call it out of order and you're messing with a mutex that isn't ready yet. do the setup first. periodt. πŸ’€

πŸ”₯ RETURN πŸ”₯

  • 0 β€” for success. that's it, that's the whole return vibe. zero means slay ✨

πŸ‘‘ SEE ALSO πŸ‘‘

the whole fcoe friend group, in the order the page says, because we do not skip anyone at this lunch table πŸ’– (also peep the kernel file ./drivers/scsi/fcoe/fcoe.c):

like, that's the entire extended universe. go read them, they're all iconic in their own way 🌈


little sign-off moment πŸŽ€ this page lives in ./drivers/scsi/fcoe and it's dated October 2026 β€” so yes, future-dated manual page, very ahead of its time, we love a trendsetter. mwah, go config your netdev, bestie πŸ’œπŸ¦‹βœ¨
πŸ“¦ where this page comes from