From nobody Fri Sep 27 03:41:34 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 4XFGV66WKBz5XQZM; Fri, 27 Sep 2024 03:41:34 +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 4XFGV65VNqz4s3Y; Fri, 27 Sep 2024 03:41:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727408494; 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=t7wDVv/Mkbc3LjO+ImJ+CbBRPqygDxpMQfsheW/PTlE=; b=n/UbBsbkRlo54CGZ8mHT1QV+IL0ZW9giKjf1zADzXbsXxpG1VvkiwbLT7SmEzh3NwjHcvN f6Nx7tJO0CKelCROSKGR9U8FEyEBagQczTmA6jDxVz0Lr9BYvnHpXO+3Zm2u8lg5++9jZR 9utLnaUQvg8Jvuk1FWwXRWh4yd+LIzlJnuGQuJRL6I1HZkQO1Yo0GIg5uz9r9ixH1rb19U 9dsT6Lld/SMqzBq8zuTN7sMCAQaOM5gG+qeE5C8dGTedtpvdheP4GZZCrywtHj21DylFk0 mwuQUlkFPt5E5nojpZIrqvEm7GL7cMegA05tTlb0hGaVFTFwOLCu5IE9+UExKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727408494; 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=t7wDVv/Mkbc3LjO+ImJ+CbBRPqygDxpMQfsheW/PTlE=; b=kykYTatz8SQprE0Ux1WsQlGuquJXOhroeZwnhtqBmpyUU3AKZ4uLkVriph6kW9zWelaAAt PqjNMn+QcNTGhLB6Uh4QiTVkyoyDRo9X15x7X4K/BmUWN0PjUcj0sdvLtthGX4pkYyTdRh JBqJACUEs9gjzZjzfGxrs5ghHCiY8QFgWBaU887xqjmCFGC0EkPcogVfBiqTcAXiMyUjkp /9oJz/Jl+C0iyqh/RGOn/X/uw/LEXYeA59hMuza/Ew+1OkpvbT+QXfzlo/k272v87mXWKx K2AeawffS41qiLzN1PlxEnIciA6A07nU/UlI0PqWnRtoMbKC4MJxCHy+rPSjbA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727408494; a=rsa-sha256; cv=none; b=mqZiLBKgA13cf8HvM6eZQaLcb2KpPabpQPIJ7mSC7lNb8uMmecvYLd6t8dxTGpGyHvZG85 cJ7b+ErjwmBz843Eg4mHlb5z5OWqgFqMs7NsWSzxxc9jQj6wPZsWgJ6LbqdVbkJI4/xr/b KUxJ4njrjUtcMCJBGA3gzV1t7G2/w2At4MX5nYrAWdtxPi61trCAOtARxSbHlopHSLm4fq GsRjoz8vW6qPZnCJj73wxRAbFRQfYaO0jtLH8xEjb3oDyiJtnsZFQzi8jVVoZFr2NSr6ww rok9BdaYbsa+nzo/PQ9j1C2gioFSMDIrzcoGHrx45pJVxWUMoMFTJav13NQrPg== 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 4XFGV655rqzPb6; Fri, 27 Sep 2024 03:41:34 +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 48R3fYYu055232; Fri, 27 Sep 2024 03:41:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48R3fYF0055229; Fri, 27 Sep 2024 03:41:34 GMT (envelope-from git) Date: Fri, 27 Sep 2024 03:41:34 GMT Message-Id: <202409270341.48R3fYF0055229@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: 980e6b7fd537 - stable/13 - 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/13 X-Git-Reftype: branch X-Git-Commit: 980e6b7fd537665a3ff72f1e03b2a902abf6b876 Auto-Submitted: auto-generated The branch stable/13 has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=980e6b7fd537665a3ff72f1e03b2a902abf6b876 commit 980e6b7fd537665a3ff72f1e03b2a902abf6b876 Author: Radoslaw Tyl AuthorDate: 2024-09-20 02:42:39 +0000 Commit: Kevin Bowling CommitDate: 2024-09-27 03:38:50 +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 \