Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci need to clear IFF_OACTIVE after allocating more ...



details:   https://anonhg.NetBSD.org/src/rev/276f62c21629
branches:  trunk
changeset: 936036:276f62c21629
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Thu Jul 16 14:57:59 2020 +0000

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

diffstat:

 sys/dev/pci/if_bnx.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r da5ddf1d4b16 -r 276f62c21629 sys/dev/pci/if_bnx.c
--- a/sys/dev/pci/if_bnx.c      Thu Jul 16 14:44:43 2020 +0000
+++ b/sys/dev/pci/if_bnx.c      Thu Jul 16 14:57:59 2020 +0000
@@ -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 @@
 
        /* 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);



Home | Main Index | Thread Index | Old Index