> -----Original Message----- > From: Intel-wired-lan <[email protected]> On Behalf Of > Aleksandr Loktionov > Sent: 22 January 2026 14:21 > To: [email protected]; Nguyen, Anthony L > <[email protected]>; Loktionov, Aleksandr > <[email protected]> > Cc: [email protected]; Marcin Szycik <[email protected]> > Subject: [Intel-wired-lan] [PATCH iwl-next v1] ixgbe: refactor: use > DECLARE_BITMAP for ring state field > > Convert the ring state field from 'unsigned long' to a proper bitmap using > DECLARE_BITMAP macro, aligning with the implementation pattern already used > in the i40e driver. > > This change: > - Adds __IXGBE_RING_STATE_NBITS as the bitmap size sentinel to enum > ixgbe_ring_state_t (consistent with i40e's __I40E_RING_STATE_NBITS) > - Changes 'unsigned long state' to 'DECLARE_BITMAP(state, > __IXGBE_RING_STATE_NBITS)' in struct ixgbe_ring > - Removes the address-of operator (&) when passing ring->state to bit > manipulation functions, as bitmap arrays naturally decay to pointers > > The change maintains functional equivalence while using the more appropriate > kernel bitmap API, consistent with other Intel Ethernet drivers. > > Signed-off-by: Aleksandr Loktionov <[email protected]> > Reviewed-by: Marcin Szycik <[email protected]> > --- > drivers/net/ethernet/intel/ixgbe/ixgbe.h | 27 ++++----- > drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c | 4 +- > drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 56 +++++++++---------- > drivers/net/ethernet/intel/ixgbe/ixgbe_xsk.c | 2 +- > 4 files changed, 45 insertions(+), 44 deletions(-) >
Tested-by: Rinitha S <[email protected]> (A Contingent worker at Intel)
