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 8F3DA455AD for ; Mon, 15 Jul 2024 17:30:59 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 85D8940DFB; Mon, 15 Jul 2024 17:30:59 +0200 (CEST) Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) by mails.dpdk.org (Postfix) with ESMTP id 2B3C840A71 for ; Mon, 15 Jul 2024 17:30:58 +0200 (CEST) Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-42122ac2f38so26491665e9.1 for ; Mon, 15 Jul 2024 08:30:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721057458; x=1721662258; 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=yClvTwbbAKgC6ze6VnFQe5DtHl1ErMMF3MPRqvUViLA=; b=IGXMkxqaahQIo8/kdz1xCGizSyr8tg+vjUvhDvmwxN620IIvNqF3DWolBXG4csPFbi oKLeIFAHukXsr98gJAeHhzLEe1BYYJumkHgijWyCPOGllwDV1rVfLgJSqqOjX/4MXISC ZtvoocAixw8E+tBfEu81KdRzH03fnUkbI74mJvOsSTevWhXNMc7Xz1xTRW5X3EttnKbI OLHVfJMN5m3KodV0dbLP3a4fXjGhlhYQK+ywNw9SeSbIiKBCKKnIXw0i/HBgUv7WmNK8 ZJlDTp+XB/vPRb+IM3hP/gggDW4qSD0kk1V6RVDEpxSDpCK5LbaXGh7KqEI5V2HZKYHQ Lhhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721057458; x=1721662258; 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=yClvTwbbAKgC6ze6VnFQe5DtHl1ErMMF3MPRqvUViLA=; b=qJZW1fsviplf0wn4+wvDNHM5lp1+SKb4MChl9gnBC7hWWD237mxeE4ciOS6LpDwyJF ZX9X3DaNplP7+LoDfU2Nnhs2x8W9vjUYiyDXAcGFixjoCWdH6LTKBuIRUo0MqN6IGVUF d5gye4SWaiXEqeHKW3LUF4/6ATaVATQxL+JqeaVyPt7bgB7n3tOOy9vPGolexaqLI5Tz 7ng/82b14LNCbchonRjDPsyWMkgBHVDHwhFRuTcJvbCAfGhl5aibMeqmUjCF9aaOD9nn wOwYPMLUmUUETgmQjLmLbBu03EYpaVZJTnRh/VxeR32BouoRwXEdSMlvINWBnGXlDx0C uL6Q== X-Gm-Message-State: AOJu0YyK90IEJfqAR0NU5k8Fr3SYjJOQDN9pxaxOAToQo/59q8KXJxEI UIkb/KOF610T9QjW+0RzLjGQ2fGFJs9v31jitSfB6pSlp3scKDo9xNq7bqfgYyQ= X-Google-Smtp-Source: AGHT+IEyyQoGL9VykIhJuzcVojlyodQE4nIDJ5Q+WwlCc0kDKJ7LSaFH57tf1IuBZrV1fCcx77z45w== X-Received: by 2002:a05:600c:714:b0:426:67fa:f7 with SMTP id 5b1f17b1804b1-4279da067dfmr97936175e9.9.1721057457713; Mon, 15 Jul 2024 08:30:57 -0700 (PDT) Received: from localhost ([137.220.120.171]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3680dab3f13sm6755442f8f.4.2024.07.15.08.30.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jul 2024 08:30:57 -0700 (PDT) From: luca.boccassi@gmail.com To: Jiawen Wu Cc: dpdk stable Subject: patch 'net/ngbe: fix MTU range' has been queued to stable release 22.11.6 Date: Mon, 15 Jul 2024 16:26:49 +0100 Message-Id: <20240715152704.2229503-71-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240715152704.2229503-1-luca.boccassi@gmail.com> References: <20240624235907.885628-81-luca.boccassi@gmail.com> <20240715152704.2229503-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.6 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 07/17/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/a51a250cc5bdfae4479d6fc1a38a041877045811 Thanks. Luca Boccassi --- >From a51a250cc5bdfae4479d6fc1a38a041877045811 Mon Sep 17 00:00:00 2001 From: Jiawen Wu Date: Tue, 18 Jun 2024 15:11:44 +0800 Subject: [PATCH] net/ngbe: fix MTU range [ upstream commit df2075eb681111637d5340c9abaf60e0aefab615 ] The valid range of MTU is 68 to 9414. Set min_mtu and max_mtu in dev_info. Fixes: 07baabb6a51a ("net/ngbe: support MTU set") Signed-off-by: Jiawen Wu --- drivers/net/ngbe/ngbe_ethdev.c | 4 +++- drivers/net/ngbe/ngbe_ethdev.h | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/ngbe/ngbe_ethdev.c b/drivers/net/ngbe/ngbe_ethdev.c index edb3c73f8b..443bd9fef9 100644 --- a/drivers/net/ngbe/ngbe_ethdev.c +++ b/drivers/net/ngbe/ngbe_ethdev.c @@ -1811,7 +1811,9 @@ ngbe_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) dev_info->max_rx_queues = (uint16_t)hw->mac.max_rx_queues; dev_info->max_tx_queues = (uint16_t)hw->mac.max_tx_queues; dev_info->min_rx_bufsize = 1024; - dev_info->max_rx_pktlen = 15872; + dev_info->max_rx_pktlen = NGBE_MAX_MTU + NGBE_ETH_OVERHEAD; + dev_info->min_mtu = RTE_ETHER_MIN_MTU; + dev_info->max_mtu = NGBE_MAX_MTU; dev_info->max_mac_addrs = hw->mac.num_rar_entries; dev_info->max_hash_mac_addrs = NGBE_VMDQ_NUM_UC_MAC; dev_info->max_vfs = pci_dev->max_vfs; diff --git a/drivers/net/ngbe/ngbe_ethdev.h b/drivers/net/ngbe/ngbe_ethdev.h index bb96f6a5e7..d6c56dcce4 100644 --- a/drivers/net/ngbe/ngbe_ethdev.h +++ b/drivers/net/ngbe/ngbe_ethdev.h @@ -31,6 +31,7 @@ #define NGBE_QUEUE_ITR_INTERVAL_DEFAULT 500 /* 500us */ +#define NGBE_MAX_MTU 9414 /* The overhead from MTU to max frame size. */ #define NGBE_ETH_OVERHEAD (RTE_ETHER_HDR_LEN + RTE_ETHER_CRC_LEN) -- 2.39.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-07-15 16:19:38.145648524 +0100 +++ 0071-net-ngbe-fix-MTU-range.patch 2024-07-15 16:19:34.696209196 +0100 @@ -1 +1 @@ -From df2075eb681111637d5340c9abaf60e0aefab615 Mon Sep 17 00:00:00 2001 +From a51a250cc5bdfae4479d6fc1a38a041877045811 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit df2075eb681111637d5340c9abaf60e0aefab615 ] + @@ -10 +11,0 @@ -Cc: stable@dpdk.org @@ -19 +20 @@ -index 9d75e222c3..d7fc4bc70b 100644 +index edb3c73f8b..443bd9fef9 100644 @@ -22 +23 @@ -@@ -1818,7 +1818,9 @@ ngbe_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) +@@ -1811,7 +1811,9 @@ ngbe_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) @@ -34 +35 @@ -index c748bfbe4d..7af58a57ac 100644 +index bb96f6a5e7..d6c56dcce4 100644 @@ -37 +38 @@ -@@ -32,6 +32,7 @@ +@@ -31,6 +31,7 @@