From patchwork Wed Apr 24 13:21:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anatoly Burakov X-Patchwork-Id: 139652 X-Patchwork-Delegate: bruce.richardson@intel.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 20DA443EAD; Wed, 24 Apr 2024 15:23:10 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E6016434AE; Wed, 24 Apr 2024 15:22:32 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) by mails.dpdk.org (Postfix) with ESMTP id EEBF6434A7 for ; Wed, 24 Apr 2024 15:22:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1713964951; x=1745500951; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=KNwVgMK74daK+8GeOdSPC/0KjPrYJG4OqNRSZpdF94c=; b=HrrXLzDUuK0KGoRM+wlkrz0zhAou+/KEgU8hNg+zV/MzpqEs+bgwYnS1 RsYnlHZQ8q6AMu3OiM3JGYqRVfAG2Qgx4EOj/vp8q4pW8y4mMCxuGQ4fn DF9k02OwYmXEPLqBf6ZxJA64W84yYmEf725fhIaoE276ME+z1SGA3sJb7 kI2Vb9S6fbkm59sEEOFGGEbaiE/KSOD8BHxCQPJkfywgXm5igaTaOWhso 2fLy3flQZnKkKQSGsb90/GAwAizAhQwNG6m1nGj/gCvx/93ibNAk3enqS bujRwpLPVHFM+dTelqYCLuNY57NLoHAb/a7KxOTpTnVnDnPRod6gC7SFw w==; X-CSE-ConnectionGUID: /T9TdnZRTyyHMHyy/Rv9GA== X-CSE-MsgGUID: NmVUJnrzRVyUSxxJntHdag== X-IronPort-AV: E=McAfee;i="6600,9927,11054"; a="20289260" X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="20289260" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2024 06:22:31 -0700 X-CSE-ConnectionGUID: 1e3LJsC0SuuDWi1WFpgtMQ== X-CSE-MsgGUID: 7BGo6OuTSwmjqNfQ3RAAXw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="24749361" Received: from silpixa00401119.ir.intel.com ([10.55.129.167]) by fmviesa006.fm.intel.com with ESMTP; 24 Apr 2024 06:22:28 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Radoslaw Tyl , vladimir.medvedkin@intel.com, bruce.richardson@intel.com, Skajewski@dpdk.org, PiotrX , Mrozowicz@dpdk.org, SlawomirX , Michael@dpdk.org, Alice Subject: [PATCH v1 07/22] net/ixgbe/base: increase DCB BW calculation for MTU from 4088 to 9128 Date: Wed, 24 Apr 2024 14:21:41 +0100 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Radoslaw Tyl Change max credit and credit refill to a maximum possible value. 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: Skajewski, PiotrX Tested-by: Skajewski, PiotrX Reviewed-by: Mrozowicz, SlawomirX Reviewed-by: Michael, Alice --- drivers/net/ixgbe/base/ixgbe_dcb.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ixgbe/base/ixgbe_dcb.h b/drivers/net/ixgbe/base/ixgbe_dcb.h index c2a1013ac0..110ad8e550 100644 --- a/drivers/net/ixgbe/base/ixgbe_dcb.h +++ b/drivers/net/ixgbe/base/ixgbe_dcb.h @@ -10,9 +10,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 \