netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ixgbe driver link down causes 100% load in ksoftirqd/x
@ 2022-01-20  9:23 Maurice Baijens (Ellips B.V.)
  2022-01-28 15:31 ` Maciej Fijalkowski
  0 siblings, 1 reply; 5+ messages in thread
From: Maurice Baijens (Ellips B.V.) @ 2022-01-20  9:23 UTC (permalink / raw)
  To: intel-wired-lan@lists.osuosl.org; +Cc: netdev@vger.kernel.org

Hello,


I have an issue with the ixgbe driver and X550Tx network adapter.
When I disconnect the network cable I end up with 100% load in ksoftirqd/x. I am running the adapter in
xdp mode (XDP_FLAGS_DRV_MODE). Problem seen in linux kernel 5.15.x and also 5.16.0+ (head).

I traced the problem down to function ixgbe_xmit_zc in ixgbe_xsk.c:

if (unlikely(!ixgbe_desc_unused(xdp_ring)) ||
    !netif_carrier_ok(xdp_ring->netdev)) {
            work_done = false;
            break;
}

This function is called from ixgbe_poll() function via ixgbe_clean_xdp_tx_irq(). It sets
work_done to false if netif_carrier_ok() returns false (so if link is down). Because work_done
is always false, ixgbe_poll keeps on polling forever.

I made a fix by checking link in ixgbe_poll() function and if no link exiting polling mode:

/* If all work not completed, return budget and keep polling */
if ((!clean_complete) && netif_carrier_ok(adapter->netdev))
            return budget;

This is probably fine for our application as we only run in xdpdrv mode, however I am not sure this
is the correct way to fix this issue and the behaviour of the normal skb mode operation is 
also affected by my fix.

So hopefully my observations are correct and someone here can fix the issue and push it upstream.


Best regards,
	Maurice Baijens

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-01-31 16:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-20  9:23 ixgbe driver link down causes 100% load in ksoftirqd/x Maurice Baijens (Ellips B.V.)
2022-01-28 15:31 ` Maciej Fijalkowski
2022-01-28 15:53   ` [External] " Maurice Baijens (Ellips B.V.)
2022-01-31 12:54     ` Maciej Fijalkowski
2022-01-31 16:46       ` Maurice Baijens (Ellips B.V.)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).