summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAleksandr Loktionov <aleksandr.loktionov@intel.com>2026-01-22 11:50:39 +0300
committerTony Nguyen <anthony.l.nguyen@intel.com>2026-03-03 19:56:05 +0300
commit246c5495c69fae1ec96531d79106c946ea904312 (patch)
tree07fe30ed91aabe8ee97a7069e66fe932eb8223b7 /include
parentb09621cc0dfd7d2ae8557ee9d0d7ca6dc75145e5 (diff)
downloadlinux-246c5495c69fae1ec96531d79106c946ea904312.tar.xz
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 <aleksandr.loktionov@intel.com> Reviewed-by: Marcin Szycik <marcin.szycik@linux.intel.com> Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de> Tested-by: Rinitha S <sx.rinitha@intel.com> (A Contingent worker at Intel) Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions