Skip to content

Commit 8ede017

Browse files
refactormanJeff Kirsher
authored andcommitted
ice: Update VSI and queue management code to handle VF VSI
Until now, all the VSI and queue management code supported only the PF VSI type (ICE_VSI_PF). Update these flows to handle the VF VSI type (ICE_VSI_VF) type as well. Signed-off-by: Anirudh Venkataramanan <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent ddf30f7 commit 8ede017

File tree

6 files changed

+184
-34
lines changed

6 files changed

+184
-34
lines changed

drivers/net/ethernet/intel/ice/ice.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ struct ice_vsi {
202202
/* Interrupt thresholds */
203203
u16 work_lmt;
204204

205+
s16 vf_id; /* VF ID for SR-IOV VSIs */
206+
205207
/* RSS config */
206208
u16 rss_table_size; /* HW RSS table size */
207209
u16 rss_size; /* Allocated RSS queues */

drivers/net/ethernet/intel/ice/ice_hw_autogen.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@
312312
#define GLV_UPTCH(_i) (0x0030A004 + ((_i) * 8))
313313
#define GLV_UPTCL(_i) (0x0030A000 + ((_i) * 8))
314314
#define VSIQF_HKEY_MAX_INDEX 12
315+
#define VSIQF_HLUT_MAX_INDEX 15
315316
#define VFINT_DYN_CTLN(_i) (0x00003800 + ((_i) * 4))
316317
#define VFINT_DYN_CTLN_CLEARPBA_M BIT(1)
317318

drivers/net/ethernet/intel/ice/ice_lan_tx_rx.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,7 @@ struct ice_tlan_ctx {
418418
u8 pf_num;
419419
u16 vmvf_num;
420420
u8 vmvf_type;
421+
#define ICE_TLAN_CTX_VMVF_TYPE_VF 0
421422
#define ICE_TLAN_CTX_VMVF_TYPE_VMQ 1
422423
#define ICE_TLAN_CTX_VMVF_TYPE_PF 2
423424
u16 src_vsi;

0 commit comments

Comments
 (0)