Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Change the number of retry to be the same as Fre...
details: https://anonhg.NetBSD.org/src/rev/1b6a6fec6e79
branches: trunk
changeset: 745212:1b6a6fec6e79
user: yamaguchi <yamaguchi%NetBSD.org@localhost>
date: Tue Feb 25 07:53:55 2020 +0000
description:
Change the number of retry to be the same as FreeBSD and Linux
pointed out and reviewed by knakahara@n.o., thanks.
diffstat:
sys/dev/pci/if_ixl.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r ce13fa51ace8 -r 1b6a6fec6e79 sys/dev/pci/if_ixl.c
--- a/sys/dev/pci/if_ixl.c Tue Feb 25 07:50:25 2020 +0000
+++ b/sys/dev/pci/if_ixl.c Tue Feb 25 07:53:55 2020 +0000
@@ -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 @@
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 @@
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;
Home |
Main Index |
Thread Index |
Old Index