Module Name: src
Committed By: yamaguchi
Date: Tue Feb 25 07:53:55 UTC 2020
Modified Files:
src/sys/dev/pci: if_ixl.c
Log Message:
Change the number of retry to be the same as FreeBSD and Linux
pointed out and reviewed by [email protected]., thanks.
To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 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.52 src/sys/dev/pci/if_ixl.c:1.53
--- src/sys/dev/pci/if_ixl.c:1.52 Tue Feb 25 07:50:25 2020
+++ src/sys/dev/pci/if_ixl.c Tue Feb 25 07:53:55 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ixl.c,v 1.52 2020/02/25 07:50:25 yamaguchi Exp $ */
+/* $NetBSD: if_ixl.c,v 1.53 2020/02/25 07:53:55 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.52 2020/02/25 07:50:25 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ixl.c,v 1.53 2020/02/25 07:53:55 yamaguchi Exp $");
#ifdef _KERNEL_OPT
#include "opt_net_mpsafe.h"
@@ -2583,7 +2583,7 @@ ixl_txr_disabled(struct ixl_softc *sc, s
KASSERT(mutex_owned(&txr->txr_lock));
- for (i = 0; i < 20; i++) {
+ for (i = 0; i < 10; i++) {
reg = ixl_rd(sc, ena);
if (ISSET(reg, I40E_QTX_ENA_QENA_STAT_MASK) == 0)
return 0;
@@ -3097,7 +3097,7 @@ ixl_rxr_disabled(struct ixl_softc *sc, s
KASSERT(mutex_owned(&rxr->rxr_lock));
- for (i = 0; i < 20; i++) {
+ for (i = 0; i < 10; i++) {
reg = ixl_rd(sc, ena);
if (ISSET(reg, I40E_QRX_ENA_QENA_STAT_MASK) == 0)
return 0;