summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authoryamaguchi <yamaguchi@NetBSD.org>2020-03-03 04:55:46 +0000
committeryamaguchi <yamaguchi@NetBSD.org>2020-03-03 04:55:46 +0000
commitb9eb7375f3cbcc8ccc1eb19e3465cc732b5f57d4 (patch)
treeb6be012a488a9dd98fdf048bb0a71c7db36802b5 /sys/dev
parent50850a3913a1f7be29159c81b9e348842c0a059e (diff)
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.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_ixl.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/pci/if_ixl.c b/sys/dev/pci/if_ixl.c
index 5b5750f9c04..499ba505307 100644
--- a/sys/dev/pci/if_ixl.c
+++ b/sys/dev/pci/if_ixl.c
@@ -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, struct ixl_tx_ring *txr,
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);