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 69CD643CAD for ; Thu, 14 Mar 2024 01:11:31 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4FD4C42E40; Thu, 14 Mar 2024 01:11:31 +0100 (CET) Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) by mails.dpdk.org (Postfix) with ESMTP id 3CB4942E67 for ; Thu, 14 Mar 2024 01:11:29 +0100 (CET) Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-413ef8f77e1so2403745e9.3 for ; Wed, 13 Mar 2024 17:11:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710375089; x=1710979889; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=mufyjf6VXk5JJFxYce+D0IrrLfbBLq8FLAidyVQX6rs=; b=dObaJoj2CQiJ8wzqeU7rB6qqUN8aggUfWWKv15KoV5CYHE+4GSHHwSxfwp4kLAdpx2 mEjhgsJAnnNi03dNe4ZKt8zQ0tqQdRgNqbHaoeFm2W8Y4Wt3OIUCloMjG5aDi7pHmRXQ HQ6Tt8HP29+YWVA5VZF+7KriUfm0ZFQOOQj5ft84zG9ftiPTAM7UPE6xbHA9s/SkaTlM meH2FljTYvImXppGG3cnWIQJjrHqgkEHGAB0n6GjJsJhAGFdoja5dEUrBHd+Vo981Np6 8w6GkwlDdlk47yumTKWOt6Gwi1sKGkg2hiaXCevEe5sWE8NCmIMMXh70StM+6wPJi8KP dOmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710375089; x=1710979889; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mufyjf6VXk5JJFxYce+D0IrrLfbBLq8FLAidyVQX6rs=; b=Isn8iVR+1gkjqXpcN0du3o0w5PyoLajkp0mep6xC9Tvkl/GZLIE4NL+XrhfWzCRo1I hxdMC+2S5zaa/sL71XPkPq+Fq802SvWpNTrn0+DEHkGDDGIkAB7X9qL1hcrfmWyjtYtQ 3E+qlR16j6toAWxgQSPp26zZLA2ener8H+Eq3dLq/Nb7jIiZO32dlDzpAX8T+MmceDbm BK8TObA879w06P3XU7wtXkqgV6hGLtjWnodTOYMmGPs4sYldvV5dIrMndNa0tB/L4lwF 708EFI0AF6HHTdSu2iaf5T828v9kfVXNX6DurTcDzEwl0AIYnPIZxNvvxeZGBXuuFWdZ vhEg== X-Gm-Message-State: AOJu0YyN92oOSVnAuwCbDEM0bIyMUmA/I8Vo3Bk1kh/gXFlDswOPIxe4 8K+Vbmauxmily+JqrjbjQWAIbVnF6n14omThnNNmrS/nK4z1RkLl3DHFR1/2 X-Google-Smtp-Source: AGHT+IFxIKMnnMgLhLwwvEMwL/Tn6cNlyYV0d1qz69SLuBLK+G0hpiRA78keEK1cV01M9jJPDXbFPw== X-Received: by 2002:a05:600c:35c6:b0:413:f0c8:d479 with SMTP id r6-20020a05600c35c600b00413f0c8d479mr179029wmq.5.1710375088913; Wed, 13 Mar 2024 17:11:28 -0700 (PDT) Received: from localhost ([137.220.120.171]) by smtp.gmail.com with ESMTPSA id bi18-20020a05600c3d9200b004133825e649sm598725wmb.33.2024.03.13.17.11.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 17:11:28 -0700 (PDT) From: luca.boccassi@gmail.com To: Sunil Kumar Kori Cc: dpdk stable Subject: patch 'net/cnxk: fix MTU limit' has been queued to stable release 22.11.5 Date: Thu, 14 Mar 2024 00:09:26 +0000 Message-Id: <20240314000957.2810803-30-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240314000957.2810803-1-luca.boccassi@gmail.com> References: <20240307013159.1735343-102-luca.boccassi@gmail.com> <20240314000957.2810803-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Hi, FYI, your patch has been queued to stable release 22.11.5 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 03/16/24. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/bluca/dpdk-stable This queued commit can be viewed at: https://github.com/bluca/dpdk-stable/commit/a2ec8fb5fa3affbd151031578c5a51a3c6bb7ed9 Thanks. Luca Boccassi --- >From a2ec8fb5fa3affbd151031578c5a51a3c6bb7ed9 Mon Sep 17 00:00:00 2001 From: Sunil Kumar Kori Date: Mon, 26 Feb 2024 19:05:30 +0530 Subject: [PATCH] net/cnxk: fix MTU limit [ upstream commit 402de2fd8729b61a3ace67c597e99893acb426d4 ] Device can support maximum frame size up to 9212 bytes. While configuring MTU, overhead is considered as ethernet header size, CRC and 2 * (VLAN tags) which translates to 26 bytes. Exposed overhead to the user via rte_eth_dev_info() is 18 bytes which were leading to set wrong Rx frame size. Fixes: 8589ec212e80 ("net/cnxk: support MTU set") Signed-off-by: Sunil Kumar Kori --- drivers/net/cnxk/cnxk_ethdev_ops.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/cnxk/cnxk_ethdev_ops.c b/drivers/net/cnxk/cnxk_ethdev_ops.c index c13ef26c5d..be29b385a4 100644 --- a/drivers/net/cnxk/cnxk_ethdev_ops.c +++ b/drivers/net/cnxk/cnxk_ethdev_ops.c @@ -20,8 +20,7 @@ cnxk_nix_info_get(struct rte_eth_dev *eth_dev, struct rte_eth_dev_info *devinfo) devinfo->max_tx_queues = RTE_MAX_QUEUES_PER_PORT; devinfo->max_mac_addrs = dev->max_mac_entries; devinfo->max_vfs = pci_dev->max_vfs; - devinfo->max_mtu = devinfo->max_rx_pktlen - - (RTE_ETHER_HDR_LEN + RTE_ETHER_CRC_LEN); + devinfo->max_mtu = devinfo->max_rx_pktlen - CNXK_NIX_L2_OVERHEAD; devinfo->min_mtu = devinfo->min_rx_bufsize - CNXK_NIX_L2_OVERHEAD; devinfo->rx_offload_capa = dev->rx_offload_capa; -- 2.39.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-03-14 00:09:22.102996312 +0000 +++ 0030-net-cnxk-fix-MTU-limit.patch 2024-03-14 00:09:20.613615221 +0000 @@ -1 +1 @@ -From 402de2fd8729b61a3ace67c597e99893acb426d4 Mon Sep 17 00:00:00 2001 +From a2ec8fb5fa3affbd151031578c5a51a3c6bb7ed9 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 402de2fd8729b61a3ace67c597e99893acb426d4 ] + @@ -14 +15,0 @@ -Cc: stable@dpdk.org @@ -22 +23 @@ -index 4962f3bced..56049c5dd2 100644 +index c13ef26c5d..be29b385a4 100644