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 Change DCB credit parameters. No functiona...



details:   https://anonhg.NetBSD.org/src/rev/713721edbb56
branches:  trunk
changeset: 1027675:713721edbb56
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed Dec 15 09:54:56 2021 +0000

description:
Change DCB credit parameters. No functional change.

  - From FreeBSD ix-3.3.24.
  - No functional change because NetBSD doesn't support DCB.

diffstat:

 sys/dev/pci/ixgbe/ixgbe_dcb.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r 08d17d3d7093 -r 713721edbb56 sys/dev/pci/ixgbe/ixgbe_dcb.h
--- a/sys/dev/pci/ixgbe/ixgbe_dcb.h     Wed Dec 15 09:53:41 2021 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe_dcb.h     Wed Dec 15 09:54:56 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ixgbe_dcb.h,v 1.7 2021/04/30 06:41:36 msaitoh Exp $ */
+/* $NetBSD: ixgbe_dcb.h,v 1.8 2021/12/15 09:54:56 msaitoh Exp $ */
 /******************************************************************************
   SPDX-License-Identifier: BSD-3-Clause
 
@@ -42,9 +42,9 @@
 /* DCB defines */
 /* DCB credit calculation defines */
 #define IXGBE_DCB_CREDIT_QUANTUM       64
-#define IXGBE_DCB_MAX_CREDIT_REFILL    200   /* 200 * 64B = 12800B */
+#define IXGBE_DCB_MAX_CREDIT_REFILL    511   /* 0x1FF * 64B = 32704B */
 #define IXGBE_DCB_MAX_TSO_SIZE         (32 * 1024) /* Max TSO pkt size in DCB*/
-#define IXGBE_DCB_MAX_CREDIT           (2 * IXGBE_DCB_MAX_CREDIT_REFILL)
+#define IXGBE_DCB_MAX_CREDIT           4095 /* Maximum credit supported: 256KB * 1024 / 64B */
 
 /* 513 for 32KB TSO packet */
 #define IXGBE_DCB_MIN_TSO_CREDIT       \



Home | Main Index | Thread Index | Old Index