Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Sep 2024 02:43:38 GMT
From:      Kevin Bowling <kbowling@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 1b80ac6fa64e - main - ixgbe: increase DCB BW calculation for MTU
Message-ID:  <202409200243.48K2hcWR097957@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kbowling:

URL: https://cgit.FreeBSD.org/src/commit/?id=1b80ac6fa64eaa575b99521cbd71a3780bf5139b

commit 1b80ac6fa64eaa575b99521cbd71a3780bf5139b
Author:     Radoslaw Tyl <radoslawx.tyl@intel.com>
AuthorDate: 2024-09-20 02:42:39 +0000
Commit:     Kevin Bowling <kbowling@FreeBSD.org>
CommitDate: 2024-09-20 02:42:39 +0000

    ixgbe: increase DCB BW calculation for MTU
    
    Change max credit and credit refill to a maximum possible value, 9128.
    Too small values cause the incorrect calculation of the bandwidth limits
    to each traffic class for frames larger than 4088 bytes.
    
    Signed-off-by: Radoslaw Tyl <radoslawx.tyl@intel.com>
    Reviewed-by: Piotr Skajewski <piotrx.skajewski@intel.com>
    Reviewed-by: Slawomir Mrozowicz <slawomirx.mrozowicz@intel.com>
    Reviewed-by: Alice Michael <alice.michael@intel.com>
    Tested-by: Piotr Skajewski <piotrx.skajewski@intel.com>
    
    Obtained from:  DPDK (440823f)
    MFC after:      1 week
---
 sys/dev/ixgbe/ixgbe_dcb.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/dev/ixgbe/ixgbe_dcb.h b/sys/dev/ixgbe/ixgbe_dcb.h
index b31dfae0cdfa..54decd4d081d 100644
--- a/sys/dev/ixgbe/ixgbe_dcb.h
+++ b/sys/dev/ixgbe/ixgbe_dcb.h
@@ -40,9 +40,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	\



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202409200243.48K2hcWR097957>