diff options
| author | msaitoh <msaitoh@NetBSD.org> | 2021-12-15 09:54:56 +0000 |
|---|---|---|
| committer | msaitoh <msaitoh@NetBSD.org> | 2021-12-15 09:54:56 +0000 |
| commit | d4e81411f0b8c4d19fe897912c2c6ca3237d3cb1 (patch) | |
| tree | c2e5ec1f1e2c580c3f58881d41f445d692ea2193 /sys/dev | |
| parent | b96fe8fd93a7c29d81e9f539b4b467a0004f1855 (diff) | |
Change DCB credit parameters. No functional change.
- From FreeBSD ix-3.3.24.
- No functional change because NetBSD doesn't support DCB.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/pci/ixgbe/ixgbe_dcb.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/ixgbe/ixgbe_dcb.h b/sys/dev/pci/ixgbe/ixgbe_dcb.h index 1d906b9d8a7..459c07b76e2 100644 --- a/sys/dev/pci/ixgbe/ixgbe_dcb.h +++ b/sys/dev/pci/ixgbe/ixgbe_dcb.h @@ -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 \ |
