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 EDF13A0C47 for ; Tue, 10 Aug 2021 17:45:13 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E28B0411C3; Tue, 10 Aug 2021 17:45:13 +0200 (CEST) Received: from smtp-relay-canonical-1.canonical.com (smtp-relay-canonical-1.canonical.com [185.125.188.121]) by mails.dpdk.org (Postfix) with ESMTP id E7244411C3 for ; Tue, 10 Aug 2021 17:45:12 +0200 (CEST) Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-1.canonical.com (Postfix) with ESMTPS id D057B40328 for ; Tue, 10 Aug 2021 15:45:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1628610312; bh=RhwO1YuPgjTQlFKtZMh12oNjUNuQmqNPqLBiz78ysdM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=v90bUoxPu6R+7/6GVfJC8KSB5/Fvf+eKUcGBjotB2YJTDbp9A5Jl9kOYMJnc/7lLJ 1DWhGql+fZQ9LRFdqAImQpFhu9Wl8sWrhWsQrlsAo2u32F13Xw/HBvmUvXEdMvuth4 Q5qk6o8SH26JNPm6nSXZ84ZgFU+mj6TPAAfU73hVSQbQPKU6ujjZ2TkKT/AlZfsOSC xQp1qh9D4+pysmtYsC6zYJQZRAWuaLBpWVJMiL1qCkOc7njjdxPqueB+2/SzGfC6Jy ycBl7+f2gsCeOcKQB7vAYdYQ0Lw+m4NMx5yWs+2PQqrYlsH4YLaWkMFSr2LLJa5lw2 n7bQxYnJFjbCA== Received: by mail-ed1-f70.google.com with SMTP id eg56-20020a05640228b8b02903be79801f9aso1440688edb.21 for ; Tue, 10 Aug 2021 08:45:12 -0700 (PDT) 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=RhwO1YuPgjTQlFKtZMh12oNjUNuQmqNPqLBiz78ysdM=; b=Ydg1F9g9rLhTjHvhe2jWkMZdG3hrnUzBmNsTWNgzvdj6WRKgGp6bx1zaXYfTd5oPRa wchx2mrpVshndaTpTJkp7DYhvmwH0eIbL3sbIy6BMKm/OY1dWC9Ymfy6AVWvTJq8FmQ5 GNbr0sHmYNIIbk4S4pMNiWPzNlWD2hmqSgblSe3hY/jeH6U9GxrLu9ECPNDpSClE/89u 1L1ug6sktDfmx4+jAJws1GdxLpRqpuMInMA+hAsmHh2C9Q0tyFmoYLVabJLa8x+/SurP xDfcRjoeNR7LxuNq2iJTDMeo07GK69Yb2He7QFbjkKpSegcxGO8wta34MtBESm0gFHT2 6/GQ== X-Gm-Message-State: AOAM530PLPg3MlDKjVWVN6pfwUycfILar8zhUE/0SNBaQDro03qktuf/ 1LqcnzRBXtCdWBzV6ihb7qz9wWZi7yKTt/7lzdMUrYPwq1FXUyztDKxPY0EaaS8lchCNBil2b+E y5EU6AtGAl4f8eyQlVgtHs5J+ X-Received: by 2002:a17:906:2acc:: with SMTP id m12mr29348690eje.231.1628610312578; Tue, 10 Aug 2021 08:45:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzrQLuMvJ6tNurJVIlp+n0DeF7wFu82HS4dr5FETN+1wmN1E+D77kt0jtsA2JuLgWAOHCvp7Q== X-Received: by 2002:a17:906:2acc:: with SMTP id m12mr29348670eje.231.1628610312405; Tue, 10 Aug 2021 08:45:12 -0700 (PDT) Received: from Keschdeichel.fritz.box ([2001:67c:1560:8007::aac:c4ad]) by smtp.gmail.com with ESMTPSA id cb4sm7008642ejb.72.2021.08.10.08.45.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Aug 2021 08:45:12 -0700 (PDT) From: christian.ehrhardt@canonical.com To: Ivan Ilchenko Cc: Andrew Rybchenko , Maxime Coquelin , dpdk stable Date: Tue, 10 Aug 2021 17:40:12 +0200 Message-Id: <20210810154022.749358-92-christian.ehrhardt@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210810154022.749358-1-christian.ehrhardt@canonical.com> References: <20210810154022.749358-1-christian.ehrhardt@canonical.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 19.11.10 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 19.11.10 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/12/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/cpaelzer/dpdk-stable-queue This queued commit can be viewed at: https://github.com/cpaelzer/dpdk-stable-queue/commit/68c79e6da11918ec4dbd9725907a455d1f20da4b Thanks. Christian Ehrhardt --- >From 68c79e6da11918ec4dbd9725907a455d1f20da4b 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 dfc6849e8a..0eca488c40 100644 --- a/drivers/net/virtio/virtio_ethdev.c +++ b/drivers/net/virtio/virtio_ethdev.c @@ -2447,6 +2447,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.32.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-08-10 15:11:16.566781517 +0200 +++ 0092-net-virtio-report-maximum-MTU-in-device-info.patch 2021-08-10 15:11:13.126638878 +0200 @@ -1 +1 @@ -From 11d7bc9ff074dc5e37dd9ab51bb365669d08c3d6 Mon Sep 17 00:00:00 2001 +From 68c79e6da11918ec4dbd9725907a455d1f20da4b 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 dfc6849e8a..0eca488c40 100644 @@ -24 +25 @@ -@@ -2504,6 +2504,7 @@ virtio_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) +@@ -2447,6 +2447,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);