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 Use IXGBE_TXDCTL_WTHRESH_SHIFT macro. No f...



details:   https://anonhg.NetBSD.org/src/rev/f0b45daeaac4
branches:  trunk
changeset: 1023577:f0b45daeaac4
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Thu Sep 16 07:08:26 2021 +0000

description:
Use IXGBE_TXDCTL_WTHRESH_SHIFT macro. No functional change.

diffstat:

 sys/dev/pci/ixgbe/ixgbe.c |  6 +++---
 sys/dev/pci/ixgbe/ixv.c   |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 9ec73d4a5426 -r f0b45daeaac4 sys/dev/pci/ixgbe/ixgbe.c
--- a/sys/dev/pci/ixgbe/ixgbe.c Thu Sep 16 02:53:28 2021 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe.c Thu Sep 16 07:08:26 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ixgbe.c,v 1.290 2021/08/26 09:03:47 msaitoh Exp $ */
+/* $NetBSD: ixgbe.c,v 1.291 2021/09/16 07:08:26 msaitoh Exp $ */
 
 /******************************************************************************
 
@@ -64,7 +64,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ixgbe.c,v 1.290 2021/08/26 09:03:47 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ixgbe.c,v 1.291 2021/09/16 07:08:26 msaitoh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -4102,7 +4102,7 @@
                txdctl = IXGBE_READ_REG(hw, IXGBE_TXDCTL(txr->me));
                txdctl |= IXGBE_TXDCTL_ENABLE;
                /* Set WTHRESH to 8, burst writeback */
-               txdctl |= (8 << 16);
+               txdctl |= (8 << IXGBE_TXDCTL_WTHRESH_SHIFT);
                /*
                 * When the internal queue falls below PTHRESH (32),
                 * start prefetching as long as there are at least
diff -r 9ec73d4a5426 -r f0b45daeaac4 sys/dev/pci/ixgbe/ixv.c
--- a/sys/dev/pci/ixgbe/ixv.c   Thu Sep 16 02:53:28 2021 +0000
+++ b/sys/dev/pci/ixgbe/ixv.c   Thu Sep 16 07:08:26 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ixv.c,v 1.166 2021/08/26 09:03:47 msaitoh Exp $ */
+/* $NetBSD: ixv.c,v 1.167 2021/09/16 07:08:26 msaitoh Exp $ */
 
 /******************************************************************************
 
@@ -35,7 +35,7 @@
 /*$FreeBSD: head/sys/dev/ixgbe/if_ixv.c 331224 2018-03-19 20:55:05Z erj $*/
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ixv.c,v 1.166 2021/08/26 09:03:47 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ixv.c,v 1.167 2021/09/16 07:08:26 msaitoh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -1716,7 +1716,7 @@
 
                /* Set WTHRESH to 8, burst writeback */
                txdctl = IXGBE_READ_REG(hw, IXGBE_VFTXDCTL(j));
-               txdctl |= (8 << 16);
+               txdctl |= (8 << IXGBE_TXDCTL_WTHRESH_SHIFT);
                IXGBE_WRITE_REG(hw, IXGBE_VFTXDCTL(j), txdctl);
 
                /* Set the HW Tx Head and Tail indices */



Home | Main Index | Thread Index | Old Index