bnx2x_vlan_...t_cmd_hdr_e2(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… bnx2x_vlan_mac_set_cmd_hdr_e2 β€” bestie, we're setting a header ✨

okay so this is a page from the Kernel API Manual and it's genuinely giving "niche driver internals but make it cute" πŸŽ€ stay with me, it's shorter than it looks.


🌸 NAME 🌸

bnx2x_vlan_mac_set_cmd_hdr_e2 β€” set a header in a single classify ramrod πŸ’… (yes, "ramrod", that's the actual word, we don't make the rules)


πŸ¦‹ SYNOPSIS πŸ¦‹

void bnx2x_vlan_mac_set_cmd_hdr_e2 (struct bnx2x *bp , struct
       bnx2x_vlan_mac_obj *o , bool add , int opcode , struct
       eth_classify_cmd_header *hdr );

like literally that's it. five args, void return, no cap 🫢


πŸ’– ARGUMENTS πŸ’–

  • bp β€” the device handle. your whole card, your whole vibe, the main character 🫢
  • o β€” the queue we're configuring this rule for. it's her queue, we're just living in it πŸ’…
  • add β€” a bool, and it's lowkey the whole plot twist: if it's true the command is an ADD command, otherwise it's a DEL. pick a lane bestie 😭
  • opcode β€” the CLASSIFY_RULE_OPCODE_XXX value. yes it's written exactly like that, the XXX is in the source, slay ⭐
  • hdr β€” pointer to a header to set up. you hand it over, it gets filled in, iconic ✨

πŸ”₯ SEE ALSO πŸ”₯

first up, the kernel file this lives in: ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c β€” that's the address, iykyk 🏠

and now the extended friend group, no one gets left out, fr fr:

bnx2x_exe_queue_init(9), bnx2x_exe_queue_add(9), bnx2x_exe_queue_step(9), bnx2x_state_wait(9), __bnx2x_vlan_mac_h_write_trylock(9), __bnx2x_vlan_mac_h_exec_pending(9), __bnx2x_vlan_mac_h_pend(9), __bnx2x_vlan_mac_h_write_unlock(9), __bnx2x_vlan_mac_h_read_lock(9), bnx2x_vlan_mac_h_read_lock(9), __bnx2x_vlan_mac_h_read_unlock(9), bnx2x_vlan_mac_h_read_unlock(9), bnx2x_vlan_mac_set_rdata_hdr_e2(9), bnx2x_vlan_mac_set_rdata_hdr_e1x(9), bnx2x_set_one_mac_e1x(9), bnx2x_set_one_vlan_mac_e1h(9), bnx2x_vlan_mac_restore(9), bnx2x_validate_vlan_mac_add(9), bnx2x_validate_vlan_mac_del(9), bnx2x_validate_vlan_mac_move(9), bnx2x_wait_vlan_mac(9), bnx2x_complete_vlan_mac(9), bnx2x_optimize_vlan_mac(9), bnx2x_vlan_mac_get_registry_elem(9), bnx2x_execute_vlan_mac(9), bnx2x_config_vlan_mac(9), bnx2x_vlan_mac_del_all(9), bnx2x_mcast_get_next_bin(9), bnx2x_mcast_clear_first_bin(9), bnx2x_mcast_handle_restore_cmd_e2(9), bnx2x_mcast_handle_current_cmd(9), bnx2x_mcast_set_rdata_hdr_e2(9), bnx2x_mcast_refresh_registry_e2(9), bnx2x_mcast_set_rdata_hdr_e1(9), bnx2x_mcast_handle_restore_cmd_e1(9), bnx2x_get_fw_mac_addr(9), bnx2x_mcast_refresh_registry_e1(9), __atomic_add_ifless(9), __atomic_dec_ifmoe(9), bnx2x_init_credit_pool(9), bnx2x_debug_print_ind_table(9), bnx2x_setup_rss(9), bnx2x_queue_state_change(9), bnx2x_queue_comp_cmd(9), bnx2x_q_init(9), bnx2x_q_send_deactivate(9), bnx2x_q_send_activate(9), bnx2x_queue_chk_transition(9), bnx2x_func_state_change_comp(9), bnx2x_func_comp_cmd(9), bnx2x_func_chk_transition(9), bnx2x_func_init_func(9), bnx2x_func_init_port(9), bnx2x_func_init_cmn_chip(9), bnx2x_func_init_cmn(9), bnx2x_func_reset_func(9), bnx2x_func_reset_port(9), bnx2x_func_reset_cmn(9), bnx2x_func_state_change(9) πŸ’œ

ngl bestie, if you're here you're probably already deep in bnx2x_sp.c at 2am and that's valid πŸŒ™

okay that's the whole page, go touch some registers πŸ’…

sign-off era: source/version is that truncated little path ./drivers/net/ethernet/broadco... and the date on this beauty is October 2026 β€” mwah, periodt πŸŽ€βœ¨

πŸ“¦ where this page comes from