From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 25DAF4410E; Thu, 30 May 2024 13:15:20 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0CA1C40DF5; Thu, 30 May 2024 13:14:43 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by mails.dpdk.org (Postfix) with ESMTP id 2EC7B40EAB for ; Thu, 30 May 2024 13:14:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1717067677; x=1748603677; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=KNwVgMK74daK+8GeOdSPC/0KjPrYJG4OqNRSZpdF94c=; b=l+EKFgzBEvXX/42DOj7Errm6suIh1gJWrSfGtkCwP78J9g+I2rY8T5Mw 6R5r3pv3NPkHinhxcUrNGL4W+DdSHJcZ4D7zCH7S1X8ctI0W9SNukxDQt NgI58cmUG6W+lQjJQT4HVK554gAozppgb3Xxy1RylMX6LXlYAZmxdT7PH s5TC5rPWWLpCvBE0tlqMMI9ds5SilG3HBekpwVZzSiCNnGfFyaHKPVIr9 jCZCbTSrlP1uiW1Q6o0hBV/pWGJcSIHswDD/ZCR1kVrzGQIT3X/AXlD2a 0ErKovby/xdHIyVsyZT9ekHNoyGJu2YDUNk+DWC+JBAWSrxztjK8nnVVZ g==; X-CSE-ConnectionGUID: zWK1zrTpS1mEBuEpCOcI+A== X-CSE-MsgGUID: QB8RLnRFRpGj+LDqRpnzxQ== X-IronPort-AV: E=McAfee;i="6600,9927,11087"; a="36063662" X-IronPort-AV: E=Sophos;i="6.08,201,1712646000"; d="scan'208";a="36063662" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 May 2024 04:14:36 -0700 X-CSE-ConnectionGUID: EfShPYlhRKi71+gCkL0nRg== X-CSE-MsgGUID: aAnMoznBRUmXeu8ZGLYL7g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,201,1712646000"; d="scan'208";a="36419362" Received: from silpixa00401119.ir.intel.com ([10.55.129.167]) by orviesa007.jf.intel.com with ESMTP; 30 May 2024 04:14:33 -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 v3 07/30] net/ixgbe/base: increase DCB BW calculation for MTU from 4088 to 9128 Date: Thu, 30 May 2024 12:13:40 +0100 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 \ -- 2.43.0