ice_xlt_kb_get_sw(9)
π ice_xlt_kb_get_sw(9) β the Kernel API Manual, bestie edition β¨
Okay so real talk, this page is from the Kernel API Manual section of the man pages, and it's all about one tiny little function that pulls off a very specific glow-up: it makes you a switch xlt key build. Yes, that's the whole vibe. It's giving "small function, big responsibilities" π
β¨ NAME β¨
ice_xlt_kb_get_sw β create switch xlt key build
Like, that's it. That's the job. It creates the switch xlt key build and then it goes home. Main character energy but make it concise π
πΈ SYNOPSIS πΈ
struct ice_xlt_kb * ice_xlt_kb_get_sw (struct ice_hw *hw );
Note the shape of it, bestie: it hands you back a struct ice_xlt_kb *, and you feed it exactly one thing β a struct ice_hw *. Copy it character for character, no cap, because the compiler is not forgiving and will absolutely read you to filth π
π¦ ARGUMENTS π¦
hwβ pointer to the hardware structure. That's the one and only thing you pass in, and it's literally the hardware struct. Nothing else, no extras, don't try to be cute about it π
π RETURN π
It returns a pointer to the allocated Key Builder table for Switch. So like β allocated memory, Key Builder table, for Switch. That's the whole return value, periodt. π
Heads up bestie: the original page doesn't say what happens if the allocation doesn't work out, so I'm not gonna invent a whole storyline about it. Read the source, iykyk π«Ά
π SEE ALSO π
First up, the actual kernel file this lives in β go look at it, it's right there:
- Kernel file
./drivers/net/ethernet/intel/ice/ice_parser.c
And now the entire friend group, because this function does not roll solo. Presenting, in the original order, no one left out, no one skipped, fr fr:
- the parser-sect girlies:
ice_parser_sect_item_get(9),ice_parser_create_table(9) - the imem crew π:
ice_imem_dump(9),ice_imem_bm_init(9),ice_imem_bkb_init(9),ice_imem_npkb_init(9),ice_imem_pgkb_init(9),ice_imem_alu_init(9),ice_imem_parse_item(9),ice_imem_table_get(9) - the metainit squad:
ice_metainit_dump(9),ice_metainit_parse_item(9),ice_metainit_table_get(9) - the bst tcam icons β:
ice_bst_tcam_search(9),ice_bst_tcam_dump(9),ice_bst_alu_init(9),ice_bst_pgkb_init(9),ice_bst_npkb_init(9),ice_bst_parse_item(9),ice_bst_tcam_table_get(9),ice_bst_lbl_table_get(9),ice_bst_tcam_match(9) - the pg cam + nm cam collective π:
ice_pg_cam_dump(9),ice_pg_nm_cam_dump(9),ice_pg_cam_action_init(9),ice_pg_nm_cam_key_init(9),ice_pg_cam_key_init(9),ice_pg_cam_parse_item(9),ice_pg_sp_cam_parse_item(9),ice_pg_nm_cam_parse_item(9),ice_pg_nm_sp_cam_parse_item(9),ice_pg_cam_table_get(9),ice_pg_sp_cam_table_get(9),ice_pg_nm_cam_table_get(9),ice_pg_nm_sp_cam_table_get(9),ice_pg_cam_match(9),ice_pg_nm_cam_match(9) - the ptype mk tcam trio:
ice_ptype_mk_tcam_dump(9),ice_ptype_mk_tcam_table_get(9),ice_ptype_mk_tcam_match(9) - group chat admins:
ice_mk_grp_dump(9),ice_mk_grp_table_get(9),ice_proto_grp_dump(9),ice_proto_off_parse(9),ice_proto_grp_parse_item(9),ice_proto_grp_table_get(9) - flag & redirect royalty π:
ice_flg_rd_dump(9),ice_flg_rd_parse_item(9),ice_flg_rd_table_get(9),ice_flg_redirect(9) - the xlt kb fam (our actual function's siblings π«Ά):
ice_xlt_kb_dump(9),ice_kb_entry_init(9),ice_parse_kb_data(9),ice_xlt_kb_get_acl(9),ice_xlt_kb_get_fd(9),ice_xlt_kb_get_rss(9),ice_xlt_kb_flag_get(9) - the parser lifecycle besties:
ice_parser_create(9),ice_parser_destroy(9),ice_parser_run(9),ice_parser_result_dump(9),ice_parser_dvm_set(9),ice_parser_vxlan_tunnel_set(9),ice_parser_geneve_tunnel_set(9),ice_parser_ecpri_tunnel_set(9),ice_nearest_proto_id(9),ice_parser_profile_init(9),ice_parser_profile_dump(9)
That's every single one, in order, nothing dropped. Obsessed with the thoroughness honestly πΈ
and that's the page!! π¦β¨ This one lives over in ./drivers/net/ethernet/intel/ice, and the whole thing is dated October 2026 β so like, bookmark it, screenshot it, tell your friends, mwah ππ
π
π¦ 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