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 7882F440E8; Mon, 27 May 2024 18:20:51 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 49287402D8; Mon, 27 May 2024 18:20:51 +0200 (CEST) Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) by mails.dpdk.org (Postfix) with ESMTP id 5305F402D4 for ; Mon, 27 May 2024 18:20:50 +0200 (CEST) Received: by mail-lj1-f178.google.com with SMTP id 38308e7fff4ca-2e6f51f9de4so139524791fa.3 for ; Mon, 27 May 2024 09:20:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716826850; x=1717431650; darn=dpdk.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=GywBG9WiX9jlavuJtpoXtcolD9qUegSPJI57FhRqIAA=; b=ls5Zkpz50MLmDJJGkR6yEUJCsErg3XRkfoCaGAW5a+La7UoTuSqDuVsVd0FJYvjaa2 WxCKgbWVJy0mDGw5coBJ1mQsuV5uxipttfEXbmimT7OlZnlEL2d6+KYkpqg8SZRQPNrM CfjuidFlaoF0jEB3+r/jhrzFb1hz4MJFrOWtdQMEjPSHkPzIvfA49zojxZrcrxIYULmW gJXjn7KXnCRzKLNEpcV5qyNzXhJqGM6cfPAWKcHN2ZjPnc+PXy87CflIGVHv1MKrKMeE q00uYG/nLe+aZQG6UtuviiKM1lQM2sjyTruf+Ve88zaA8D+PZBbh+B2QtxnHMjJh9zoZ 9UcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716826850; x=1717431650; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=GywBG9WiX9jlavuJtpoXtcolD9qUegSPJI57FhRqIAA=; b=A75puo2erasfXptOTVZJrl66Woh8NhQvgjFwvErJyprHeDv5VpDIvqYTU5zCtzMSi6 vzp7heDo7lPHPhmmOKdSRq6owiG34HdxiPnYzlsCscF9bIPcFBBuaNy1qwzvLYVkVpJL wTCTDwaGlZBWQJ482gClgJ5qBDZAPNr4/CakCOh8/qD6PzDfMUpVAIDJw7AWpM4ohgrR 3e1i7fp9Dt898bkZJ9mmvBhhJB4FKBTlZ9CFQNJoFdrg+Ykn+liwbsFz7Aj470cL+BVf GVkp64XzIqJJEtRGAsnowv2Xx43V3tGqwHbc+ii7GaYWiL/LoFvnAu5cxTNxYsgJ3XYV LvOA== X-Gm-Message-State: AOJu0YxF8WiLxT7NP5k+PtCr5zHCQp4KKZSq+TX3MnNJKPyFfYMpEDus 93ML8f2TmCO1Yq+0vyphgaKKYQEAVzJBt7fIZwZBg2jBzRQgmlQ3 X-Google-Smtp-Source: AGHT+IGpbztFuW7dF3+r0RusrUydmDCNYMCA1PpfwEoRgtKiInOiGPrLRjsoIQtCJkY6djlKyOMFhA== X-Received: by 2002:a2e:8e8d:0:b0:2e0:da20:2502 with SMTP id 38308e7fff4ca-2e95b27b0b1mr71153911fa.49.1716826849354; Mon, 27 May 2024 09:20:49 -0700 (PDT) Received: from saturn.. ([85.174.203.117]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2e95bdd34fcsm19604231fa.93.2024.05.27.09.20.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 09:20:49 -0700 (PDT) From: Igor Gutorov To: Yuying.Zhang@intel.com Cc: dev@dpdk.org, Igor Gutorov Subject: [PATCH] net/i40e: increase descriptor queue length to 8160 Date: Mon, 27 May 2024 19:19:21 +0300 Message-ID: <20240527161921.183866-1-igootorov@gmail.com> X-Mailer: git-send-email 2.45.1 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 According to the Intel X710/XXV710/XL710 Datasheet, the maximum receive queue descriptor length is 0x1FE0 (8160 in base 10). This is specified as QLEN in table 8-12, page 1083. I've tested this change with an XXV710 NIC and it has positive effect on performance under high load scenarios. Where previously I'd get ~2000 packets/sec miss rate, now I get only ~40 packets/sec miss rate. Signed-off-by: Igor Gutorov --- drivers/net/i40e/i40e_rxtx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/i40e/i40e_rxtx.h b/drivers/net/i40e/i40e_rxtx.h index 2f2f890855..33fc9770d9 100644 --- a/drivers/net/i40e/i40e_rxtx.h +++ b/drivers/net/i40e/i40e_rxtx.h @@ -25,7 +25,7 @@ #define I40E_RX_MAX_DATA_BUF_SIZE (16 * 1024 - 128) #define I40E_MIN_RING_DESC 64 -#define I40E_MAX_RING_DESC 4096 +#define I40E_MAX_RING_DESC 8160 #define I40E_FDIR_NUM_TX_DESC (I40E_FDIR_PRG_PKT_CNT << 1) #define I40E_FDIR_NUM_RX_DESC (I40E_FDIR_PRG_PKT_CNT << 1) -- 2.45.1