Skip to content

Commit eff380a

Browse files
refactormanJeff Kirsher
authored andcommitted
ice: Introduce ice_base.c
Remove a few uses of kernel configuration flags from ice_lib.c by introducing a new source file ice_base.c. Also move corresponding function prototypes from ice_lib.h to ice_base.h and include ice_base.h where required. Signed-off-by: Anirudh Venkataramanan <[email protected]> Signed-off-by: Tony Nguyen <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent 1574cf8 commit eff380a

File tree

10 files changed

+811
-827
lines changed

10 files changed

+811
-827
lines changed

drivers/net/ethernet/intel/ice/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ ice-y := ice_main.o \
1313
ice_nvm.o \
1414
ice_switch.o \
1515
ice_sched.o \
16+
ice_base.o \
1617
ice_lib.o \
1718
ice_txrx.o \
1819
ice_flex_pipe.o \

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,14 @@ extern const char ice_drv_ver[];
127127
ICE_PROMISC_VLAN_TX | \
128128
ICE_PROMISC_VLAN_RX)
129129

130+
struct ice_txq_meta {
131+
u32 q_teid; /* Tx-scheduler element identifier */
132+
u16 q_id; /* Entry in VSI's txq_map bitmap */
133+
u16 q_handle; /* Relative index of Tx queue within TC */
134+
u16 vsi_idx; /* VSI index that Tx queue belongs to */
135+
u8 tc; /* TC number that Tx queue belongs to */
136+
};
137+
130138
struct ice_tc_info {
131139
u16 qoffset;
132140
u16 qcount_tx;

0 commit comments

Comments
 (0)