Skip to content

Commit 2274653

Browse files
committed
Do not call ifq_restart() if no space has been made on the Tx ring.
Better fix for the issue where ice(4) gets stuck in OACTIVE. Same fix as committed to vmx(4) by yasuoka@ ok yasuoka@
1 parent f53f3ba commit 2274653

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sys/dev/pci/if_ice.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: if_ice.c,v 1.48 2025/06/20 09:27:49 stsp Exp $ */
1+
/* $OpenBSD: if_ice.c,v 1.49 2025/06/20 09:32:04 stsp Exp $ */
22

33
/* Copyright (c) 2024, Intel Corporation
44
* All rights reserved.
@@ -29160,7 +29160,7 @@ ice_txeof(struct ice_softc *sc, struct ice_tx_queue *txq)
2916029160

2916129161
//ixl_enable(sc, txr->txr_msix);
2916229162

29163-
if (ifq_is_oactive(ifq))
29163+
if (done && ifq_is_oactive(ifq))
2916429164
ifq_restart(ifq);
2916529165

2916629166
return (done);

0 commit comments

Comments
 (0)