Skip to content

Commit

Permalink
ice: Initialize DDP package structures
Browse files Browse the repository at this point in the history
Add functions to initialize, parse, and clean structures representing
the DDP package.

Upon completion of package download, read and store the DDP package
contents to these structures.  This configuration is used to
identify the default behavior and later used to update the HW table
entries.

Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
  • Loading branch information
Tony Nguyen authored and Jeff Kirsher committed Sep 12, 2019
1 parent c764881 commit 32d63fa
Show file tree
Hide file tree
Showing 4 changed files with 953 additions and 2 deletions.
5 changes: 4 additions & 1 deletion drivers/net/ethernet/intel/ice/ice_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,9 @@ enum ice_status ice_init_hw(struct ice_hw *hw)

ice_init_flex_flds(hw, ICE_RXDID_FLEX_NIC);
ice_init_flex_flds(hw, ICE_RXDID_FLEX_NIC_2);

status = ice_init_hw_tbls(hw);
if (status)
goto err_unroll_fltr_mgmt_struct;
return 0;

err_unroll_fltr_mgmt_struct:
Expand Down Expand Up @@ -911,6 +913,7 @@ void ice_deinit_hw(struct ice_hw *hw)
ice_sched_cleanup_all(hw);
ice_sched_clear_agg(hw);
ice_free_seg(hw);
ice_free_hw_tbls(hw);

if (hw->port_info) {
devm_kfree(ice_hw_to_dev(hw), hw->port_info);
Expand Down
Loading

0 comments on commit 32d63fa

Please sign in to comment.