i40e/i40evf: use DECLARE_BITMAP for state
When using set_bit and friends, we should be using actual bitmaps, and fix all the locations where we might access it. Signed-off-by: Jesse Brandeburg <jesse.brandeburg@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
0a0d9af5bc
commit
bd6cd4e6dd
@@ -325,6 +325,7 @@ struct i40e_rx_queue_stats {
|
||||
enum i40e_ring_state_t {
|
||||
__I40E_TX_FDIR_INIT_DONE,
|
||||
__I40E_TX_XPS_INIT_DONE,
|
||||
__I40E_RING_STATE_NBITS /* must be last */
|
||||
};
|
||||
|
||||
/* some useful defines for virtchannel interface, which
|
||||
@@ -348,7 +349,7 @@ struct i40e_ring {
|
||||
struct i40e_tx_buffer *tx_bi;
|
||||
struct i40e_rx_buffer *rx_bi;
|
||||
};
|
||||
unsigned long state;
|
||||
DECLARE_BITMAP(state, __I40E_RING_STATE_NBITS);
|
||||
u16 queue_index; /* Queue number of ring */
|
||||
u8 dcb_tc; /* Traffic class of ring */
|
||||
u8 __iomem *tail;
|
||||
|
Reference in New Issue
Block a user