bnx2x_queue_chk_transition(9)
π bnx2x_queue_chk_transition(9) π
okay so bestie, welcome to the bnx2x_queue_chk_transition page from the Kernel API Manual β¨ this one is literally the vibe-check bouncer for a regular Queue's state machine, and yes it's as iconic as it sounds π
πΈ NAME πΈ
bnx2x_queue_chk_transition β check state machine of a regular Queue π
β¨ SYNOPSIS β¨
int bnx2x_queue_chk_transition (struct bnx2x *bp , struct
bnx2x_queue_sp_obj *o , struct bnx2x_queue_state_params *params );
π¦ ARGUMENTS π¦
bpβ device handle, the whole device's main character pass π«Άoβ queue info, like all the tea about this specific queue πparamsβ queue state, the state we're trying to slide into π
π DESCRIPTION π
okay so first thing, the heading says (not Forwarding) β meaning this is not for Forwarding, got it? write that down π
What it does: it does both things, bestie. It checks whether the requested command is legal in the current state, and if it is legal, it sets a next_state in the object β and that next_state is what the completion flow will use later to set the state of the object. two-step reveal, very iconic π₯
It returns 0 if the requested command is a legal transition, and -EINVAL otherwise. no cap, that's the whole return situation π
π§ SEE ALSO π§
Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
and the whole squad, 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_cmd_hdr_e2(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_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)
and that's the whole page, bestie π source is ./drivers/net/ethernet/broadco... from October 2026 (the tiny footer was giving truncation energy ngl π), for bnx2x_queue_chk_transition(9) β go forth and validate those transitions, periodt ππ«Ά
π¦ 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