Module Name:    src
Committed By:   yamaguchi
Date:           Tue Mar  3 04:55:46 UTC 2020

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

Log Message:
Send packets even if link state is not up

ixl(4) has not the limitation that it must not send packet when
link is down. And most of the other NIC drivers do not refer to it
when sending packets.

reviewed by knakahara@n.o, thanks.


To generate a diff of this commit:
cvs rdiff -u -r1.59 -r1.60 src/sys/dev/pci/if_ixl.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_ixl.c
diff -u src/sys/dev/pci/if_ixl.c:1.59 src/sys/dev/pci/if_ixl.c:1.60
--- src/sys/dev/pci/if_ixl.c:1.59	Tue Mar  3 04:34:45 2020
+++ src/sys/dev/pci/if_ixl.c	Tue Mar  3 04:55:46 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_ixl.c,v 1.59 2020/03/03 04:34:45 yamaguchi Exp $	*/
+/*	$NetBSD: if_ixl.c,v 1.60 2020/03/03 04:55:46 yamaguchi Exp $	*/
 
 /*
  * Copyright (c) 2013-2015, Intel Corporation
@@ -74,7 +74,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ixl.c,v 1.59 2020/03/03 04:34:45 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ixl.c,v 1.60 2020/03/03 04:55:46 yamaguchi Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_net_mpsafe.h"
@@ -2733,8 +2733,7 @@ ixl_tx_common_locked(struct ifnet *ifp, 
 
 	KASSERT(mutex_owned(&txr->txr_lock));
 
-	if (ifp->if_link_state != LINK_STATE_UP
-	    || !ISSET(ifp->if_flags, IFF_RUNNING)
+	if (!ISSET(ifp->if_flags, IFF_RUNNING)
 	    || (!is_transmit && ISSET(ifp->if_flags, IFF_OACTIVE))) {
 		if (!is_transmit)
 			IFQ_PURGE(&ifp->if_snd);

Reply via email to