Skip to content

Commit 72b915a

Browse files
mfijalkoanguy11
authored andcommitted
ice: xsk: fix VSI state check in ice_xsk_wakeup()
ICE_DOWN is dedicated for pf->state. Check for ICE_VSI_DOWN being set on vsi->state in ice_xsk_wakeup(). Fixes: 2d4238f ("ice: Add support for AF_XDP") Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com> Tested-by: Shwetha Nagaraju <shwetha.nagaraju@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
1 parent f9124c6 commit 72b915a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/net/ethernet/intel/ice/ice_xsk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,7 @@ ice_xsk_wakeup(struct net_device *netdev, u32 queue_id,
920920
struct ice_vsi *vsi = np->vsi;
921921
struct ice_tx_ring *ring;
922922

923-
if (test_bit(ICE_DOWN, vsi->state))
923+
if (test_bit(ICE_VSI_DOWN, vsi->state))
924924
return -ENETDOWN;
925925

926926
if (!ice_is_xdp_ena_vsi(vsi))

0 commit comments

Comments
 (0)