From nobody Fri Sep 20 02:43:38 2024 X-Original-To: dev-commits-src-main@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 4X8xXW11yjz5WVP4; Fri, 20 Sep 2024 02:43:39 +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 4X8xXV5vz7z4Dpt; Fri, 20 Sep 2024 02:43:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726800218; 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=GYD9Wxp9Mx3qPjXTogCk54ZbId/OT27Qsd9RWUuUVwE=; b=EXkZvJXLPVdWnBEbIrfHWFwRiBuNEEVywXne9+NQCBzo8VB393IJr71PEhvIlFipQanIYL ICXuyzQF7cCR+7RwPRVxKJJvmS8BhIsC2fVhQzQ7ftS2E2Dh8Dye0h0XFK4A/F2NqZyznd 68V5K7KGHld/uPXAMCC8XFr0J/4T70zh7WEIAImW/vp371jl9tdL0NLYv1A5elMttN4kt5 2mXktxmEjhMT/HiS6KCK1ZzFwCJFQ7oBY1cOs+qD2w6Lg6mTHnlWYimP1uEs1nA77CXLyh YrIwRjSmlZj+BpJwv74Tgunoz8ajpIvlMzeOIMB0DZtFzrb+f1Cbr3OUG+h7BQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726800218; a=rsa-sha256; cv=none; b=v4Yr37lfLgWwOqEsams1J8K6c2h9UQDh3/s3wjmbI0iUa4jQfZ7iUrJS15AiciH3xpaCQ3 SdYGiSsgbRotfYdwMUa5OHqJBqEX/SbVRWnAK9SN7GMBYjQgxx8W2/s8KTd9ZwSTra4FcN RoHDQFW09Z2aF5z2bV7kGoB5IMNyyRIB53U/8W0wQSe7+ifBjcmYTgIBoVGceR6yBpowkj 1LlgfwLWnhGIeOj7440cOGjsW4Pnlbc8BbzX6a+67TyfvSfzEjIOvuPzJCGa8f3H9mFk+a gkYBtmg6hjeVCs4dnSaIkXjlulRqQFoX3yAr1N2x8FSg95dxluY01GEJgS90oA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726800218; 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=GYD9Wxp9Mx3qPjXTogCk54ZbId/OT27Qsd9RWUuUVwE=; b=tnvGFBpg/b01/BolgU8e66AphimyFlud/HsJ1fm+NZLhtSVVY/TkQ7Y16J8HwAf4353pz/ EobdJyH8hD+MYiUjWuiCGxQ5r7g6iFq2o9WFFrICokU/wNvJOas4gbDsuTHzh5L0dfTvqE yAMeLyA0vtR/btrslWO+7g30Jcf42VGYNbMmJqzDAThCIfhD2QrlaGQ81PCUPy9nozioPx bBWEbQct4fS/hBOqgVOqOsQvX8hVcw9yPqbGBHBgRGh8M6JCLizKGOyTYiYLUKbe6O7+l1 f9cfZrXFfkBhtnVVflX+99pb0fEehblWOdV0vfDIkkcQLEJ2O4oeiKlvCYT6cQ== 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 4X8xXV5W1xzXMW; Fri, 20 Sep 2024 02:43:38 +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 48K2hcCM097960; Fri, 20 Sep 2024 02:43:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48K2hcWR097957; Fri, 20 Sep 2024 02:43:38 GMT (envelope-from git) Date: Fri, 20 Sep 2024 02:43:38 GMT Message-Id: <202409200243.48K2hcWR097957@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kevin Bowling Subject: git: 1b80ac6fa64e - main - ixgbe: increase DCB BW calculation for MTU List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 1b80ac6fa64eaa575b99521cbd71a3780bf5139b Auto-Submitted: auto-generated The branch main has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=1b80ac6fa64eaa575b99521cbd71a3780bf5139b commit 1b80ac6fa64eaa575b99521cbd71a3780bf5139b Author: Radoslaw Tyl AuthorDate: 2024-09-20 02:42:39 +0000 Commit: Kevin Bowling 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 Reviewed-by: Piotr Skajewski Reviewed-by: Slawomir Mrozowicz Reviewed-by: Alice Michael Tested-by: Piotr Skajewski 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 \