ice: Rework queue management code for reuse
This patch reworks the queue management code to allow for reuse with the XDP feature (to be added in a future patch). Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com> Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:

committed by
Jeff Kirsher

parent
ab4ab73fc1
commit
03f7a98668
@@ -129,6 +129,17 @@ struct ice_res_tracker {
|
||||
u16 list[1];
|
||||
};
|
||||
|
||||
struct ice_qs_cfg {
|
||||
struct mutex *qs_mutex; /* will be assgined to &pf->avail_q_mutex */
|
||||
unsigned long *pf_map;
|
||||
unsigned long pf_map_size;
|
||||
unsigned int q_count;
|
||||
unsigned int scatter_count;
|
||||
u16 *vsi_map;
|
||||
u16 vsi_map_offset;
|
||||
u8 mapping_mode;
|
||||
};
|
||||
|
||||
struct ice_sw {
|
||||
struct ice_pf *pf;
|
||||
u16 sw_id; /* switch ID for this switch */
|
||||
|
Reference in New Issue
Block a user