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 7D73EA0A0C for ; Tue, 3 Aug 2021 14:22:54 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7731C411A7; Tue, 3 Aug 2021 14:22:54 +0200 (CEST) Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) by mails.dpdk.org (Postfix) with ESMTP id 59B1840E3C for ; Tue, 3 Aug 2021 14:22:52 +0200 (CEST) Received: by mail-wm1-f47.google.com with SMTP id k38-20020a05600c1ca6b029025af5e0f38bso1589179wms.5 for ; Tue, 03 Aug 2021 05:22:52 -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=cVYCAGygQ4NTU7HTAXA7r/eSVIxDdN04oZbXbIagrds=; b=hgOA0ga06EG1UASPfL6rIRCbOJCxP/uxOm8XW2QvwV6WomSzlNIXYB3ddfW+GPy4oa oq8hDU1ZB2BCDg7n6nlqij/+cZn1sDV5aD1ykQN48U/AM8UvcAq3v8/OV4h65F9/26U6 6nI5INGdR+kCzJIiC2mwYDd3Q1khbf2kEcoqNLF09WjFoFGgRBfYe9LRSs2A2PwTytR2 8RpEsKTs/2rF+tw6/L8emjJctf6NmbkKYeXU1JOpGJac4KkU2jYj824orHGMqTtPsJWm 5Yg7P0kRPRmVAneLWBIxRfaxbgMP1/i4C23zBl4l6P+4cKH1Uyh1+lvpKL5JL/gatFLS sYYQ== 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=cVYCAGygQ4NTU7HTAXA7r/eSVIxDdN04oZbXbIagrds=; b=mw0OsSmvWKDgOhYNEXRoVhy3uvwIyztFD2WtorqST5OERm8JNdXAg+NzRZ8QtabciR C18K+70qh3vIWmgfVwMtzJmySMQ5wws5rEwcKgvEOuheO5wex5YBnfDgz3+uVLRDHxcx TEMIh0nieINuEdLM7VI9jXbdmygaYRNyJw74wNe7kI2FR2ryruAQzGv+EfayAOeN7Yqu 5sblP4Nzao28z9bCDjIQjiay3MWr/NyWikYhXF04QzHgnBXnFBIPQUH+nIuDhpkpMa1i SBSh1lY/KjKMwi5r4JYooP+xsiwKUKXTNRvx8iItQ3f37BLrsD+VCpo0SplPiS9uR8uG BS4Q== X-Gm-Message-State: AOAM5328OY6/FqSC96oNBfFq3LE4NIhdyUDibPuoU53RpIiMhugNOKzR Jbez243U4b88DJQIc7kQrhI= X-Google-Smtp-Source: ABdhPJyN6INgpxuxZ5jxp5/6gP+1vK3rdjy6lZLBG96V40gVmihfimrT9x9w85RuJGqWigdel8zn2Q== X-Received: by 2002:a05:600c:1c09:: with SMTP id j9mr3923316wms.183.1627993372013; Tue, 03 Aug 2021 05:22:52 -0700 (PDT) Received: from localhost ([137.220.125.106]) by smtp.gmail.com with ESMTPSA id j6sm2391059wmq.29.2021.08.03.05.22.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Aug 2021 05:22:51 -0700 (PDT) From: luca.boccassi@gmail.com To: Ghalem Boudour Cc: Olivier Matz , Michal Krawczyk , dpdk stable Date: Tue, 3 Aug 2021 13:22:02 +0100 Message-Id: <20210803122214.1094992-13-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210803122214.1094992-1-luca.boccassi@gmail.com> References: <20210726135322.149850-59-luca.boccassi@gmail.com> <20210803122214.1094992-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'net/ena: enable multi-segment in Tx offload flags' 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/62a186761fd05e022682e5c89c1bffd032cf2480 Thanks. Luca Boccassi --- >From 62a186761fd05e022682e5c89c1bffd032cf2480 Mon Sep 17 00:00:00 2001 From: Ghalem Boudour Date: Fri, 30 Jul 2021 10:34:41 +0200 Subject: [PATCH] net/ena: enable multi-segment in Tx offload flags [ upstream commit 3e7008459df969611fb7aa3b885a949515ac0b49 ] The DPDK ENA driver does not provide multi-segment tx offload capability. Let's add DEV_TX_OFFLOAD_MULTI_SEGS to ports offload capability by default, and always set it in dev->data->dev_conf.txmode.offload. This flag in not listed in doc/guides/nics/features/default.ini, so ena.ini does not need to be updated. Fixes: 1173fca25af9 ("ena: add polling-mode driver") Signed-off-by: Ghalem Boudour Signed-off-by: Olivier Matz Acked-by: Michal Krawczyk --- drivers/net/ena/ena_ethdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c index 06fb99182c..3f2c979f52 100644 --- a/drivers/net/ena/ena_ethdev.c +++ b/drivers/net/ena/ena_ethdev.c @@ -1963,6 +1963,7 @@ static int ena_dev_configure(struct rte_eth_dev *dev) if (dev->data->dev_conf.rxmode.mq_mode & ETH_MQ_RX_RSS_FLAG) dev->data->dev_conf.rxmode.offloads |= DEV_RX_OFFLOAD_RSS_HASH; + dev->data->dev_conf.txmode.offloads |= DEV_TX_OFFLOAD_MULTI_SEGS; adapter->tx_selected_offloads = dev->data->dev_conf.txmode.offloads; adapter->rx_selected_offloads = dev->data->dev_conf.rxmode.offloads; @@ -2037,6 +2038,7 @@ static int ena_infos_get(struct rte_eth_dev *dev, DEV_RX_OFFLOAD_TCP_CKSUM; rx_feat |= DEV_RX_OFFLOAD_JUMBO_FRAME; + tx_feat |= DEV_TX_OFFLOAD_MULTI_SEGS; /* Inform framework about available features */ dev_info->rx_offload_capa = rx_feat; -- 2.30.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-08-03 12:35:08.771744670 +0100 +++ 0013-net-ena-enable-multi-segment-in-Tx-offload-flags.patch 2021-08-03 12:35:08.234819128 +0100 @@ -1 +1 @@ -From 3e7008459df969611fb7aa3b885a949515ac0b49 Mon Sep 17 00:00:00 2001 +From 62a186761fd05e022682e5c89c1bffd032cf2480 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 3e7008459df969611fb7aa3b885a949515ac0b49 ] + @@ -14 +15,0 @@ -Cc: stable@dpdk.org @@ -24 +25 @@ -index 14f776b5ad..4cebf60a68 100644 +index 06fb99182c..3f2c979f52 100644 @@ -27 +28 @@ -@@ -1856,6 +1856,7 @@ static int ena_dev_configure(struct rte_eth_dev *dev) +@@ -1963,6 +1963,7 @@ static int ena_dev_configure(struct rte_eth_dev *dev) @@ -35 +36 @@ -@@ -1930,6 +1931,7 @@ static int ena_infos_get(struct rte_eth_dev *dev, +@@ -2037,6 +2038,7 @@ static int ena_infos_get(struct rte_eth_dev *dev,