Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci/ixgbe ifdef D(ebug)? From FreeBSD ix-3.3.14.
details: https://anonhg.NetBSD.org/src/rev/fb0da14f8a96
branches: trunk
changeset: 1027200:fb0da14f8a96
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Fri Dec 10 11:27:17 2021 +0000
description:
ifdef D(ebug)? From FreeBSD ix-3.3.14.
diffstat:
sys/dev/pci/ixgbe/ixgbe_netmap.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (52 lines):
diff -r 400edee9dab3 -r fb0da14f8a96 sys/dev/pci/ixgbe/ixgbe_netmap.c
--- a/sys/dev/pci/ixgbe/ixgbe_netmap.c Fri Dec 10 11:25:22 2021 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe_netmap.c Fri Dec 10 11:27:17 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ixgbe_netmap.c,v 1.4 2021/04/30 06:55:32 msaitoh Exp $ */
+/* $NetBSD: ixgbe_netmap.c,v 1.5 2021/12/10 11:27:17 msaitoh Exp $ */
/******************************************************************************
Copyright (c) 2001-2017, Intel Corporation
@@ -71,7 +71,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ixgbe_netmap.c,v 1.4 2021/04/30 06:55:32 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ixgbe_netmap.c,v 1.5 2021/12/10 11:27:17 msaitoh Exp $");
#ifdef DEV_NETMAP
/*
@@ -121,9 +121,11 @@
hl = IXGBE_READ_REG(hw, IXGBE_HLREG0);
rxc = IXGBE_READ_REG(hw, IXGBE_RDRXCTL);
+#ifdef D
if (netmap_verbose)
D("%s read HLREG 0x%x rxc 0x%x",
onoff ? "enter" : "exit", hl, rxc);
+#endif
/* hw requirements ... */
rxc &= ~IXGBE_RDRXCTL_RSCFRSTSIZE;
rxc |= IXGBE_RDRXCTL_RSCACKC;
@@ -136,9 +138,11 @@
hl |= IXGBE_HLREG0_RXCRCSTRP;
rxc |= IXGBE_RDRXCTL_CRCSTRIP;
}
+#ifdef D
if (netmap_verbose)
D("%s write HLREG 0x%x rxc 0x%x",
onoff ? "enter" : "exit", hl, rxc);
+#endif
IXGBE_WRITE_REG(hw, IXGBE_HLREG0, hl);
IXGBE_WRITE_REG(hw, IXGBE_RDRXCTL, rxc);
}
@@ -344,7 +348,9 @@
*/
nic_i = IXGBE_READ_REG(&adapter->hw, IXGBE_TDH(kring->ring_id));
if (nic_i >= kring->nkr_num_slots) { /* XXX can it happen ? */
+#ifdef D
D("TDH wrap %d", nic_i);
+#endif
nic_i -= kring->nkr_num_slots;
}
if (nic_i != txr->next_to_clean) {
Home |
Main Index |
Thread Index |
Old Index