diff options
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice.h')
-rw-r--r-- | drivers/net/ethernet/intel/ice/ice.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice.h b/drivers/net/ethernet/intel/ice/ice.h index d8b5fff581e7..868f4a1d0f72 100644 --- a/drivers/net/ethernet/intel/ice/ice.h +++ b/drivers/net/ethernet/intel/ice/ice.h | |||
@@ -89,6 +89,13 @@ extern const char ice_drv_ver[]; | |||
89 | #define ice_for_each_rxq(vsi, i) \ | 89 | #define ice_for_each_rxq(vsi, i) \ |
90 | for ((i) = 0; (i) < (vsi)->num_rxq; (i)++) | 90 | for ((i) = 0; (i) < (vsi)->num_rxq; (i)++) |
91 | 91 | ||
92 | /* Macros for each allocated tx/rx ring whether used or not in a VSI */ | ||
93 | #define ice_for_each_alloc_txq(vsi, i) \ | ||
94 | for ((i) = 0; (i) < (vsi)->alloc_txq; (i)++) | ||
95 | |||
96 | #define ice_for_each_alloc_rxq(vsi, i) \ | ||
97 | for ((i) = 0; (i) < (vsi)->alloc_rxq; (i)++) | ||
98 | |||
92 | struct ice_tc_info { | 99 | struct ice_tc_info { |
93 | u16 qoffset; | 100 | u16 qoffset; |
94 | u16 qcount; | 101 | u16 qcount; |
@@ -189,9 +196,9 @@ struct ice_vsi { | |||
189 | struct list_head tmp_sync_list; /* MAC filters to be synced */ | 196 | struct list_head tmp_sync_list; /* MAC filters to be synced */ |
190 | struct list_head tmp_unsync_list; /* MAC filters to be unsynced */ | 197 | struct list_head tmp_unsync_list; /* MAC filters to be unsynced */ |
191 | 198 | ||
192 | bool irqs_ready; | 199 | u8 irqs_ready; |
193 | bool current_isup; /* Sync 'link up' logging */ | 200 | u8 current_isup; /* Sync 'link up' logging */ |
194 | bool stat_offsets_loaded; | 201 | u8 stat_offsets_loaded; |
195 | 202 | ||
196 | /* queue information */ | 203 | /* queue information */ |
197 | u8 tx_mapping_mode; /* ICE_MAP_MODE_[CONTIG|SCATTER] */ | 204 | u8 tx_mapping_mode; /* ICE_MAP_MODE_[CONTIG|SCATTER] */ |
@@ -262,7 +269,7 @@ struct ice_pf { | |||
262 | struct ice_hw_port_stats stats; | 269 | struct ice_hw_port_stats stats; |
263 | struct ice_hw_port_stats stats_prev; | 270 | struct ice_hw_port_stats stats_prev; |
264 | struct ice_hw hw; | 271 | struct ice_hw hw; |
265 | bool stat_prev_loaded; /* has previous stats been loaded */ | 272 | u8 stat_prev_loaded; /* has previous stats been loaded */ |
266 | char int_name[ICE_INT_NAME_STR_LEN]; | 273 | char int_name[ICE_INT_NAME_STR_LEN]; |
267 | }; | 274 | }; |
268 | 275 | ||