Module Name:    src
Committed By:   jdolecek
Date:           Thu Jul 16 14:57:59 UTC 2020

Modified Files:
        src/sys/dev/pci: if_bnx.c

Log Message:
need to clear IFF_OACTIVE after allocating more pkts in order to actually
start processing the queue in bnx_start()


To generate a diff of this commit:
cvs rdiff -u -r1.100 -r1.101 src/sys/dev/pci/if_bnx.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/if_bnx.c
diff -u src/sys/dev/pci/if_bnx.c:1.100 src/sys/dev/pci/if_bnx.c:1.101
--- src/sys/dev/pci/if_bnx.c:1.100	Thu Jul 16 14:44:43 2020
+++ src/sys/dev/pci/if_bnx.c	Thu Jul 16 14:57:59 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_bnx.c,v 1.100 2020/07/16 14:44:43 jdolecek Exp $	*/
+/*	$NetBSD: if_bnx.c,v 1.101 2020/07/16 14:57:59 jdolecek Exp $	*/
 /*	$OpenBSD: if_bnx.c,v 1.101 2013/03/28 17:21:44 brad Exp $	*/
 
 /*-
@@ -35,7 +35,7 @@
 #if 0
 __FBSDID("$FreeBSD: src/sys/dev/bce/if_bce.c,v 1.3 2006/04/13 14:12:26 ru Exp $");
 #endif
-__KERNEL_RCSID(0, "$NetBSD: if_bnx.c,v 1.100 2020/07/16 14:44:43 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bnx.c,v 1.101 2020/07/16 14:57:59 jdolecek Exp $");
 
 /*
  * The following controllers are supported by this driver:
@@ -4107,6 +4107,7 @@ bnx_alloc_pkts(struct work * unused, voi
 
 	/* fire-up TX now that allocations have been done */
 	s = splnet();
+	CLR(ifp->if_flags, IFF_OACTIVE);
 	if (!IFQ_IS_EMPTY(&ifp->if_snd))
 		bnx_start(ifp);
 	splx(s);

Reply via email to