From nobody Fri Sep 27 03:36:13 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XFGMx32KRz5XQLY; Fri, 27 Sep 2024 03:36:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XFGMx1dRRz4nDC; Fri, 27 Sep 2024 03:36:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727408173; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=c5nX3tvJZSkfzk6B+izK1fzjYG+khnreJHSnk1TI29s=; b=RMyyBKMbVafNZkzF+PrgAxq1QMFg+5Jeguxzjfx6mX8HgRwXlPZKnZtBjhxeCnyW1V1dnG MJ2/hZ9P9F+SGKHQP52Xd8esZ5xphUxiMv5MU84x60Gp3Eo/EFu1873psCBAn8W8FnkjMz zBBxW5CDtkgA4pwmBoModpSoMg/aOvfcJJdqOdUrFQWqJa+Ptb1Ei4CrIwNMAWoXj92rs1 fajVMWjpLui5FxNTq0MgTnZpCHGy7C7e+DljnlhZjSxaqBlnkiAmC71WdW6H4z6NA/dehr 3pkmZ/uWIO3KEUD3YpaYiC/et52NoR6i0Bvj8Jy6a1nqaSDpX3SUz1sBA73whA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727408173; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=c5nX3tvJZSkfzk6B+izK1fzjYG+khnreJHSnk1TI29s=; b=pw9y4kGgPiHOzymhe6m6pxpMHi9t1TWIVQBfxqB1Y6dWDDoXKywNoZNoxrAo2ppKU9V71N 3cGzrd+LjW2DVhW9EdnbuqsACNDWu2y5cG+9lvJixjGtw0b3iFPEVaUAZAHdHVX+nQJfV8 SAh4EBkTOGNE3h2XaASqqFaMaL+BVJ7nleD99N8o4MwflMk5l52TsH39u/6+SH5uhDCjE4 J6qhJY2S93RXNEX7KqYi28x0/Lz+5BlWvL4pfykbXdChdK5Oj1Umf6aCfHo1K+3yIOTxnl I9qtRxdNSflMXcqO0y10zqdG5wK39XiIYxzrZMN02di1CSRNfU8Sk9ko6r6yxg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727408173; a=rsa-sha256; cv=none; b=L+sEcjSh4TOp6fd3kO+Mm1Zl0KUDn7pSAXQNL+V3+ConNf+Ecuok8N6UMBPHLb+C9oe1WK Q9s6tIBJ7G17xIEZ3NKxCGC9JuhXlYvaq3tei+Ait8SJCSSyErx7K8vqv60QmtRsJFWYx3 ffRESDStxPfWvP5XfD4t+xRY01ue5tNdAk+Ita4JsfMlnzFkH2vlZUpLJTFOreh75MAxqM Vz4XWAohodo+UsI1FjOf8mBEAegLE2nrQ3CyojqxZAxZl7tGrzZHgZcx9kkXDEoOYXaiQ9 An0SlMvlCIhFzq5B3sFdaCLLfoftfYUB5N7AJNVz4b6kolPUpg55paZCI/9F2Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XFGMx0x34zNx2; Fri, 27 Sep 2024 03:36:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 48R3aDLF038828; Fri, 27 Sep 2024 03:36:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48R3aD9l038825; Fri, 27 Sep 2024 03:36:13 GMT (envelope-from git) Date: Fri, 27 Sep 2024 03:36:13 GMT Message-Id: <202409270336.48R3aD9l038825@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kevin Bowling Subject: git: 004a73f51df4 - stable/14 - ixgbe: increase DCB BW calculation for MTU List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kbowling X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 004a73f51df49fd4f17148f123f7776fb35de3ab Auto-Submitted: auto-generated The branch stable/14 has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=004a73f51df49fd4f17148f123f7776fb35de3ab commit 004a73f51df49fd4f17148f123f7776fb35de3ab Author: Radoslaw Tyl AuthorDate: 2024-09-20 02:42:39 +0000 Commit: Kevin Bowling CommitDate: 2024-09-27 03:32:25 +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 Reviewed-by: Piotr Skajewski Reviewed-by: Slawomir Mrozowicz Reviewed-by: Alice Michael Tested-by: Piotr Skajewski Obtained from: DPDK (440823f) (cherry picked from commit 1b80ac6fa64eaa575b99521cbd71a3780bf5139b) --- 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 \