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 2BE23A0A0C for ; Tue, 3 Aug 2021 14:22:22 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0096F411A7; Tue, 3 Aug 2021 14:22:22 +0200 (CEST) Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) by mails.dpdk.org (Postfix) with ESMTP id 083F440E3C for ; Tue, 3 Aug 2021 14:22:20 +0200 (CEST) Received: by mail-wm1-f50.google.com with SMTP id b128so12362022wmb.4 for ; Tue, 03 Aug 2021 05:22:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3+8K7lMKuvWYeYl3cGXFC/b66hI1s1yl/MJVZB0XsW0=; b=pZ7M0RbsiY7KoGbpHfXCQQxUyfJ5VvGXHa3lumjz2XHeP0vYdOidCC6/UEaD8+JDv2 OwO7fatBxFFs4rpV95Y7Ru+Jk7xbejsJb6EsxhEUZ/cd2c9Qz8YFkvZdwJjjPJuwtG19 YRwKT+4RUpOR2DAcQmPE/d58OoeTeLYKdZiLWfc2RMf973iRJIRaT7CTSLk10vJdtWxo yqe3ILFH74XJaF9rxju3D195z1Pnfxpovac9BA+KMpY/CYSezkWgdiSxbHdyCeKkNfWk ncjicLpgvMVUUacNAFkDgSWBufSmxbOStJIOvRjUiM3zqdinQarousKROtIxgV43FQuy qlkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=3+8K7lMKuvWYeYl3cGXFC/b66hI1s1yl/MJVZB0XsW0=; b=LF/iu18SVdqtR0CniY3WobQpfMJq/Sx1TGBY0ajeGVnQy8VGP7HOcgP8gsFk1V6Sgl NSOtwYyg8aHZF4yeMQYW6W9phgMwLlPt96cjMpKNJIxRMPFfMZx/Ap819iss9MbaOU7n rVBW2rJEXrsXDjE9gByFYo7Np+RPbM67+9VhRQG+Pg8kIXvwYeQaYhaEHmkCqkOLbWmK hpG1C3x42XftJaLd7h1O6LouqxTv6RKgurkMkwyQKU1jUaR1E7oS3rMstcS2sb2MDu22 nckqEaKopyosw+3DI4e4Mld+kHQolDMXjugYYkEKEdIYWU2WcughjryeOxo+BZnklsXi fktg== X-Gm-Message-State: AOAM531asSwZs2YE864jPIiZKiiA/KVwn2Ml/G9TLN2u1cMB1cqHA6GZ CUls7MCMP4C2w+osMmXoRvo= X-Google-Smtp-Source: ABdhPJzDxugi9F4fCrML40tItu6M0wYXl3zFprXy2OcrGjgpkwREwinbx+yVmMyCPDb7laxg+dGP9A== X-Received: by 2002:a05:600c:28b:: with SMTP id 11mr3964644wmk.6.1627993339714; Tue, 03 Aug 2021 05:22:19 -0700 (PDT) Received: from localhost ([137.220.125.106]) by smtp.gmail.com with ESMTPSA id g138sm16267889wmg.32.2021.08.03.05.22.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Aug 2021 05:22:19 -0700 (PDT) From: luca.boccassi@gmail.com To: Ivan Ilchenko Cc: Andrew Rybchenko , Maxime Coquelin , dpdk stable Date: Tue, 3 Aug 2021 13:21:50 +0100 Message-Id: <20210803122214.1094992-1-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210726135322.149850-59-luca.boccassi@gmail.com> References: <20210726135322.149850-59-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'net/virtio: report maximum MTU in device info' has been queued to stable release 20.11.3 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 Sender: "stable" Hi, FYI, your patch has been queued to stable release 20.11.3 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 08/05/21. 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/47d67fb4bbf1a7361438cf55d7465f57ca86924c Thanks. Luca Boccassi --- >From 47d67fb4bbf1a7361438cf55d7465f57ca86924c Mon Sep 17 00:00:00 2001 From: Ivan Ilchenko Date: Wed, 21 Jul 2021 12:22:25 +0300 Subject: [PATCH] net/virtio: report maximum MTU in device info [ upstream commit 11d7bc9ff074dc5e37dd9ab51bb365669d08c3d6 ] Fix the driver to report maximum MTU obtained from config if VIRTIO_NET_F_MTU is supported or calculated based on maximum Rx packet length. Fixes: ad97ceece12c ("ethdev: add min/max MTU to device info") Signed-off-by: Ivan Ilchenko Signed-off-by: Andrew Rybchenko Reviewed-by: Maxime Coquelin --- drivers/net/virtio/virtio_ethdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index 25810cc8db..f87c931d13 100644 --- a/drivers/net/virtio/virtio_ethdev.c +++ b/drivers/net/virtio/virtio_ethdev.c @@ -2694,6 +2694,7 @@ virtio_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) dev_info->min_rx_bufsize = VIRTIO_MIN_RX_BUFSIZE; dev_info->max_rx_pktlen = VIRTIO_MAX_RX_PKTLEN; dev_info->max_mac_addrs = VIRTIO_MAX_MAC_ADDRS; + dev_info->max_mtu = hw->max_mtu; host_features = VTPCI_OPS(hw)->get_features(hw); dev_info->rx_offload_capa = DEV_RX_OFFLOAD_VLAN_STRIP; -- 2.30.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-08-03 12:35:08.287963444 +0100 +++ 0001-net-virtio-report-maximum-MTU-in-device-info.patch 2021-08-03 12:35:08.162817690 +0100 @@ -1 +1 @@ -From 11d7bc9ff074dc5e37dd9ab51bb365669d08c3d6 Mon Sep 17 00:00:00 2001 +From 47d67fb4bbf1a7361438cf55d7465f57ca86924c Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 11d7bc9ff074dc5e37dd9ab51bb365669d08c3d6 ] + @@ -11 +12,0 @@ -Cc: stable@dpdk.org @@ -21 +22 @@ -index 72d3dda71f..a4adeec5ab 100644 +index 25810cc8db..f87c931d13 100644 @@ -24 +25 @@ -@@ -2504,6 +2504,7 @@ virtio_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) +@@ -2694,6 +2694,7 @@ virtio_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) @@ -30 +31 @@ - host_features = VIRTIO_OPS(hw)->get_features(hw); + host_features = VTPCI_OPS(hw)->get_features(hw);