bnx2x_sp_post(9)
π bnx2x_sp_post β from the Kernel API Manual, bestie
okay so this is bnx2x_sp_post(9), straight out of the Kernel API Manual, and it's honestly such a little workhorse. it does exactly one thing and it does it cute: it drops a single command onto an SP ring. that's the whole vibe. β¨
πΈ NAME πΈ
bnx2x_sp_post β places a single command on an SP ring π
π¦ SYNOPSIS π¦
int bnx2x_sp_post (struct bnx2x *bp , int command , int cid , u32
data_hi , u32 data_lo , int cmd_type );
π ARGUMENTS π
bpβ the driver handle. your main character pointer, fr fr.commandβ the command you're placing (likeSETUP,FILTER_RULES, etc.). yes bestie, those are the actual examples.cidβ the SW CID this command is related to. it's giving "which one of my children is this about" energy.data_hiβ the command's private data address, high 32 bits. the upper half, the top bun πdata_loβ the command's private data address, low 32 bits. the bottom bun, we love a matching set.cmd_typeβ the command type (likeNONE,ETH). lowkey just a little label so everyone knows what kind of command this is.
β¨ DESCRIPTION β¨
okay so here's the tea β β SP data gets handled as if it's always an address pair. always. no exceptions. so because of that, the data fields are not swapped to little endian up in the upper functions. nope, not there, not today.
instead, this function does the swapping, and it swaps the data as if it's two u32 fields. two little 32-bit besties getting their bytes flipped around π
that's the whole job. iconic honestly.
π SEE ALSO π
the kernel file lives here, bookmark it:
Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
and now, the whole friend group π β go say hi:
bnx2x_get_leader_lock_resource(9)bnx2x_trylock_leader_lock(9)bnx2x_get_common_flags(9)bnx2x_is_contextless_ramrod(9)bnx2x_clear_pf_load(9)bnx2x_chk_parity_attn(9)bnx2x_init_hw_common(9)bnx2x_init_hw_common_chip(9)bnx2x_set_int_mode(9)bnx2x_pf_q_prep_init(9)bnx2x_setup_queue(9)bnx2x_send_unload_req(9)bnx2x_send_unload_done(9)bnx2x_clp_reset_done(9)bnx2x_reset_mcp_prep(9)bnx2x_mcp_wait_one(9)bnx2x_er_poll_igu_vq(9)bnx2x_set_uc_list(9)bnx2x_get_num_non_def_sbs(9)bnx2x_io_error_detected(9)bnx2x_io_slot_reset(9)bnx2x_io_resume(9)bnx2x_set_iscsi_eth_mac_addr(9)
π«Ά that's the page!! sourced from ./drivers/net/ethernet/broadco... and dated October 2026 β go off, calendar. mwah π bnx2x_sp_post(9) out. π
π¦ 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