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 DE505A00C2 for ; Thu, 3 Nov 2022 10:29:58 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DA8AA40694; Thu, 3 Nov 2022 10:29:58 +0100 (CET) Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) by mails.dpdk.org (Postfix) with ESMTP id DD2AD42684 for ; Thu, 3 Nov 2022 10:29:57 +0100 (CET) Received: by mail-wr1-f45.google.com with SMTP id z14so1709742wrn.7 for ; Thu, 03 Nov 2022 02:29:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=Q2N4OoXRjSphV7I6qFTo1Etus2TPoJRp2SvhV4wUkos=; b=qRorBT4cWypMESdTz1hDY10Xn/z175A+5G0LQ6REKojdo1fAid9oSOyS90QZr7j5Gs CNPSuTKcYjekG9URXlB7IDyvS6E1dL1RE9qdIrY00weOvaMKRu7D4JHlCZIBc3azbe3J pNnxkJ5n9I3ZyTB15AzikaBXMUmmPzInfMMA1v0PH5ayfajPF3fs5zJD5tlHHHBtVy2K BmGj4H+xyQyY38XQSHkrE0oVt05TkXVBpWCg2yajNwFEtzAO63HJ5H7nBTDxAawIJ+qt RNcoA/Z0mS3uMaSsPqAFEA9SrjYfrSp0I5truxbGN0m+HJxgXyKradGdMFRtFLrZG1Xq flMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=Q2N4OoXRjSphV7I6qFTo1Etus2TPoJRp2SvhV4wUkos=; b=HRDD6nm6brCQn823ol5tQkQOvYCLA3/Qnu9PJsFRiCkDbYl1Nh/2gme8hdLGcKSpgt wCkpOZwLVYy4NaiPe6x5d62BY6knPkuDLLt4yWNIhROJPje3+21oh1sAKzsITEYTSGUG yz62tQQeo3hrxHv3Yi1JdP8TgYxSK9PKFx5rk+Wf2o6rCl0O9jLtgdk5heRm5G7MoK7o TBYdxBcoGGJTYMs2EpZrN+pYNCWqm/CnSwx08JSwV3YZEjWezUh6vwTL6ZhpBt20k5Eb FlfnIg6BX2DiKjc6iiL6DOrKh5PQoVQNFutDGIKrG0HAVzVsYgndd4JH7K0W+wH/SR0e r2gw== X-Gm-Message-State: ACrzQf3gLmet4xsRdv8pGMp6ED1bifrnC5/9zimjgAZ/lJIsgkq/4UYV IUhmajieluslXH9D8GEfZQzfjuWM72D9puuo X-Google-Smtp-Source: AMsMyM7B2L1Mxly3Mp91p0KvlvgD0QjluqTa9tld9Bwet4Z5so2hkz443tlQ2baW3i5/UNqg3JMdCA== X-Received: by 2002:a5d:6887:0:b0:236:8ead:47ab with SMTP id h7-20020a5d6887000000b002368ead47abmr18689446wru.372.1667467797561; Thu, 03 Nov 2022 02:29:57 -0700 (PDT) Received: from localhost ([2a01:4b00:d307:1000:f1d3:eb5e:11f4:a7d9]) by smtp.gmail.com with ESMTPSA id k5-20020a7bc405000000b003cf6c2f9513sm746504wmi.2.2022.11.03.02.29.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Nov 2022 02:29:57 -0700 (PDT) From: luca.boccassi@gmail.com To: Steven Zou Cc: Qi Zhang , dpdk stable Subject: patch 'common/iavf: avoid copy in async mode' has been queued to stable release 20.11.7 Date: Thu, 3 Nov 2022 09:26:52 +0000 Message-Id: <20221103092758.1099402-34-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221103092758.1099402-1-luca.boccassi@gmail.com> References: <20221103092758.1099402-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 20.11.7 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/05/22. 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/kevintraynor/dpdk-stable This queued commit can be viewed at: https://github.com/kevintraynor/dpdk-stable/commit/f21c69d6d985e2a3f391ec4a56f3407ef25199ee Thanks. Luca Boccassi --- >From f21c69d6d985e2a3f391ec4a56f3407ef25199ee Mon Sep 17 00:00:00 2001 From: Steven Zou Date: Mon, 5 Sep 2022 09:42:06 +0800 Subject: [PATCH] common/iavf: avoid copy in async mode [ upstream commit c60fad56266fef1f5f6e08c062806e137713e9da ] If cmd_details are defined or async flag is set, don't copy the desc/buff back to temp. Fixes: e5b2a9e957e7 ("net/avf/base: add base code for avf PMD") Signed-off-by: Steven Zou Acked-by: Qi Zhang --- drivers/common/iavf/iavf_adminq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/common/iavf/iavf_adminq.c b/drivers/common/iavf/iavf_adminq.c index 8d03de0553..c6c2feae59 100644 --- a/drivers/common/iavf/iavf_adminq.c +++ b/drivers/common/iavf/iavf_adminq.c @@ -788,7 +788,8 @@ enum iavf_status iavf_asq_send_command(struct iavf_hw *hw, } /* if ready, copy the desc back to temp */ - if (iavf_asq_done(hw)) { + if (iavf_asq_done(hw) && + !details->async && !details->postpone) { iavf_memcpy(desc, desc_on_ring, sizeof(struct iavf_aq_desc), IAVF_DMA_TO_NONDMA); if (buff != NULL) -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2022-11-03 09:27:27.486361350 +0000 +++ 0034-common-iavf-avoid-copy-in-async-mode.patch 2022-11-03 09:27:25.381422595 +0000 @@ -1 +1 @@ -From c60fad56266fef1f5f6e08c062806e137713e9da Mon Sep 17 00:00:00 2001 +From f21c69d6d985e2a3f391ec4a56f3407ef25199ee Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit c60fad56266fef1f5f6e08c062806e137713e9da ] + @@ -10 +11,0 @@ -Cc: stable@dpdk.org @@ -19 +20 @@ -index 8b305c0fe3..56c8a519be 100644 +index 8d03de0553..c6c2feae59 100644