fcoe_netdev_config(9)
π 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):
fcoe_interface_setup(9)fcoe_interface_create(9)fcoe_interface_remove(9)fcoe_interface_cleanup(9)fcoe_fip_recv(9)fcoe_fip_vlan_recv(9)fcoe_port_send(9)fcoe_fip_send(9)fcoe_update_src_mac(9)fcoe_get_src_mac(9)fcoe_lport_config(9)fcoe_shost_config(9)fcoe_fdmi_info(9)fcoe_oem_match(9)fcoe_em_config(9)fcoe_if_destroy(9)fcoe_ddp_setup(9)fcoe_ddp_target(9)fcoe_ddp_done(9)fcoe_if_create(9)fcoe_if_init(9)fcoe_if_exit(9)fcoe_rcv(9)fcoe_alloc_paged_crc_eof(9)fcoe_xmit(9)fcoe_filter_frames(9)fcoe_recv_frame(9)fcoe_receive_work(9)fcoe_dev_setup(9)fcoe_dev_cleanup(9)fcoe_device_notification(9)fcoe_disable(9)fcoe_enable(9)fcoe_ctlr_enabled(9)fcoe_ctlr_mode(9)fcoe_destroy(9)fcoe_destroy_work(9)fcoe_match(9)fcoe_dcb_create(9)_fcoe_create(9)fcoe_create(9)fcoe_ctlr_alloc(9)fcoe_link_ok(9)fcoe_percpu_clean(9)fcoe_reset(9)fcoe_hostlist_lookup_port(9)fcoe_hostlist_lookup(9)fcoe_hostlist_add(9)fcoe_hostlist_del(9)fcoe_init(9)fcoe_exit(9)fcoe_flogi_resp(9)fcoe_logo_resp(9)fcoe_vport_create(9)fcoe_vport_destroy(9)fcoe_vport_remove(9)fcoe_vport_disable(9)fcoe_set_vport_symbolic_name(9)fcoe_set_port_id(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms