ice_init_pkg(9)
β¨ NAME β¨
ice_init_pkg β initialize/download package. Okay so real talk: this is the ice_init_pkg(9) page from the Kernel API Manual, and it's basically the βget the package readyβ bestie of the ice driver. π«Ά
πΈ SYNOPSIS πΈ
enum ice_ddp_state ice_init_pkg (struct ice_hw *hw , u8 *buf , u32 len );
π ARGUMENTS π
hwβ pointer to the hardware structure. That's the main-character struct, periodt. πbufβ pointer to the package buffer. The actual package lives here. πlenβ size of the package buffer. Gotta know how much buffer we're working with, obviously. π
π DESCRIPTION π
Okay so this function initializes a package. The package contains HW tables required to do packet processing β like, that's the whole point, no cap. First, the function extracts package information such as version. Then it finds the ice configuration segment within the package; this function then saves a copy of the segment pointer within the supplied package buffer. Next, the function will cache any hints from the package, followed by downloading the package itself. Note, that if a previous PF driver has already downloaded the package successfully, then the current driver will not have to download the package again. Slay for not doing redundant work. β¨
The local package contents will be used to query default behavior and to update specific sections of the HW's version of the package (e.g. to update the parse graph to understand new protocols). It's giving βlearn the new protocols, glow-up the parse graph.β π
This function stores a pointer to the package buffer memory, and it is expected that the supplied buffer will not be freed immediately. If the package buffer needs to be freed, such as when read from a file, use ice_copy_and_init_pkg instead of directly calling ice_init_pkg in this case.
β οΈ Bestie, do not free the supplied buffer immediately β the function keeps a pointer to that package buffer memory. If you need to free it (say, because you read it from a file), useice_copy_and_init_pkginstead of directly callingice_init_pkg. That's the whole safety vibe. π
π¦ SEE ALSO π¦
- Kernel file:
./drivers/net/ethernet/intel/ice/ice_ddp.cβ the source file. ice_verify_pkg(9)ice_free_seg(9)ice_chk_pkg_version(9)ice_pkg_val_buf(9)ice_find_buf_table(9)ice_pkg_enum_buf(9)ice_pkg_advance_sect(9)ice_pkg_enum_section(9)ice_pkg_enum_entry(9)ice_sw_fv_handler(9)ice_get_prof_index_max(9)ice_get_ddp_pkg_state(9)ice_init_pkg_regs(9)ice_marker_ptype_tcam_handler(9)ice_add_dvm_hint(9)ice_add_tunnel_hint(9)ice_label_enum_handler(9)ice_enum_labels(9)ice_boost_tcam_handler(9)ice_find_boost_entry(9)ice_is_init_pkg_successful(9)ice_pkg_buf_alloc(9)ice_get_sw_prof_type(9)ice_get_sw_fv_bitmap(9)ice_get_sw_fv_list(9)ice_init_prof_result_bm(9)ice_pkg_buf_free(9)ice_pkg_buf_reserve_section(9)ice_pkg_buf_alloc_section(9)ice_pkg_buf_alloc_single_section(9)ice_pkg_buf_get_active_sections(9)ice_pkg_buf(9)ice_acquire_global_cfg_lock(9)ice_release_global_cfg_lock(9)ice_aq_download_pkg(9)ice_is_buffer_metadata(9)struct ice_ddp_send_ctx(9)ice_ddp_send_hunk(9)ice_dwnld_cfg_bufs_no_lock(9)ice_get_pkg_seg_by_idx(9)ice_is_signing_seg_at_idx(9)ice_is_signing_seg_type_at_idx(9)ice_download_pkg_sig_seg(9)ice_download_pkg_config_seg(9)ice_dwnld_sign_and_cfg_segs(9)ice_match_signing_seg(9)ice_post_dwnld_pkg_actions(9)ice_download_pkg_with_sig_seg(9)ice_dwnld_cfg_bufs(9)ice_download_pkg_without_sig_seg(9)ice_download_pkg(9)ice_aq_get_pkg_info_list(9)ice_aq_update_pkg(9)ice_aq_upload_section(9)ice_update_pkg_no_lock(9)ice_update_pkg(9)ice_find_seg_in_pkg(9)ice_has_signing_seg(9)ice_get_pkg_segment_id(9)ice_get_pkg_sign_type(9)ice_get_signing_req(9)ice_init_pkg_info(9)ice_get_pkg_info(9)ice_chk_pkg_compat(9)ice_init_pkg_hints(9)ice_fill_hw_ptype(9)ice_copy_and_init_pkg(9)ice_get_set_tx_topo(9)ice_cfg_tx_topo(9)
π okay bye bestie β source/version: ./drivers/net/ethernet/intel/ice Β· date: October 2026 Β· ice_init_pkg(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