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 31BB1A0547 for ; Tue, 9 Feb 2021 11:36:43 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0DD91160705; Tue, 9 Feb 2021 11:36:43 +0100 (CET) Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) by mails.dpdk.org (Postfix) with ESMTP id B217540147 for ; Tue, 9 Feb 2021 11:36:41 +0100 (CET) Received: by mail-wm1-f50.google.com with SMTP id i9so2967420wmq.1 for ; Tue, 09 Feb 2021 02:36:41 -0800 (PST) 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=b+1XIqDUHvUqBuROLsdZfEYiGWe3sM4GBaEf7kkbKv0=; b=DxxrNEQPwbbf/yg873JrFebD/kvMONJU0M+usQIlDnS2Fw1qyqmx41E8Vqq7wl+w24 WpsXPcXe/sNsyrRQiXM5Qd0hbXz0EREcazIdIbHE2X27GQHmhf+hT16s0cPEy+ncFQZH oHeRADzvrPPtJCC3ngydbrDp1RY4KapdLeoKdM1kAZ8ulrRg9vJnOgSPytcMj8FAmD0u VYA4XG6labGZD6A2ceTI+77pmiH81I8rS7S9P/KNtjeT9i+0IdekafgdNOYPfwU/C6MJ PsLQdv1Rd+C1Vg37JPO9G46s4y2cGOHb+nA1aRx6qhwg8TMCXaBG2ucevqFJSq3G0LHa JgFQ== 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=b+1XIqDUHvUqBuROLsdZfEYiGWe3sM4GBaEf7kkbKv0=; b=Yj1Rclu2/JkX7GoGgCOTR+xqFD1OCTEiwhu5rcL5TCmWQN/JFMpAquUqWhJUWGl9Pa qJBZT36/1Y8E3+ItDERSn6O9K3TNMysX5q9t+SBiD7QI9+gad5XZ44PDCQinOaTxWr5K 5u9p7KXD6vY8T6Qr2KdXJ5Ve0lgVcokx2d+MAHzGBWTjYBieLQZVf9rfrEUrBphWwFWS 0pfmURfKz5OCjtdo6UDmwfVzzZjhjQLe+MoBGckEOOYmYJ3UsdZEUa8I/UvxMyoNaZvG tLnqzLhej8kC/9Gg7BCivM3N2MdacRl1uwhLdVZsU1xkcyFzI+ECyjU4f4fP0b60DVw7 Ed6g== X-Gm-Message-State: AOAM530KUss8Z50s34BaBw0U7+KN5QF5T8ve3lqh+fsy15ZSi72d+vNo tPyc6z2dkD65z/8nrYf3Mcs= X-Google-Smtp-Source: ABdhPJzoUyV6NjDBf57MaM9Rb3LlTj2htf8xldaeGmH64ghgqz6TLFemkVp324JHFZdw2wZOjNiuKQ== X-Received: by 2002:a1c:dfd6:: with SMTP id w205mr2797568wmg.90.1612867001500; Tue, 09 Feb 2021 02:36:41 -0800 (PST) Received: from localhost ([88.98.246.218]) by smtp.gmail.com with ESMTPSA id v11sm20307431wrr.3.2021.02.09.02.36.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Feb 2021 02:36:40 -0800 (PST) From: luca.boccassi@gmail.com To: Dekel Peled Cc: Matan Azrad , dpdk stable Date: Tue, 9 Feb 2021 10:35:20 +0000 Message-Id: <20210209103529.466775-22-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210209103529.466775-1-luca.boccassi@gmail.com> References: <20210205111920.1272063-1-luca.boccassi@gmail.com> <20210209103529.466775-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'app/testpmd: support shared age action query' has been queued to stable release 20.11.1 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.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 02/11/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/df1ba25f9579a02d1de29b70adbb77d946a37de8 Thanks. Luca Boccassi --- >From df1ba25f9579a02d1de29b70adbb77d946a37de8 Mon Sep 17 00:00:00 2001 From: Dekel Peled Date: Thu, 4 Feb 2021 12:04:15 +0200 Subject: [PATCH] app/testpmd: support shared age action query [ upstream commit dec7c4bd905486c318dc3a7e626de5aeb6e6167e ] Shared age action query was implemented as part of flow query, but was not implemented as part of shared action query. This patch adds the required implementation. Fixes: 2f622174bf86 ("app/testpmd: support query of age action") Signed-off-by: Dekel Peled Acked-by: Matan Azrad --- app/test-pmd/config.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index 0e2b9f7d3c..dab8afe5dd 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -1879,6 +1879,7 @@ port_shared_action_query(portid_t port_id, uint32_t id) return -EINVAL; switch (psa->type) { case RTE_FLOW_ACTION_TYPE_RSS: + case RTE_FLOW_ACTION_TYPE_AGE: data = &default_data; break; default: @@ -1895,6 +1896,20 @@ port_shared_action_query(portid_t port_id, uint32_t id) *((uint32_t *)data)); data = NULL; break; + case RTE_FLOW_ACTION_TYPE_AGE: + if (!ret) { + struct rte_flow_query_age *resp = data; + + printf("AGE:\n" + " aged: %u\n" + " sec_since_last_hit_valid: %u\n" + " sec_since_last_hit: %" PRIu32 "\n", + resp->aged, + resp->sec_since_last_hit_valid, + resp->sec_since_last_hit); + } + data = NULL; + break; default: printf("Shared action %u (type: %d) on port %u doesn't support" " query\n", id, psa->type, port_id); @@ -1902,6 +1917,7 @@ port_shared_action_query(portid_t port_id, uint32_t id) } return ret; } + static struct port_flow_tunnel * port_flow_tunnel_offload_cmd_prep(portid_t port_id, const struct rte_flow_item *pattern, -- 2.29.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-02-09 10:34:58.811950914 +0000 +++ 0022-app-testpmd-support-shared-age-action-query.patch 2021-02-09 10:34:57.926584313 +0000 @@ -1 +1 @@ -From dec7c4bd905486c318dc3a7e626de5aeb6e6167e Mon Sep 17 00:00:00 2001 +From df1ba25f9579a02d1de29b70adbb77d946a37de8 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit dec7c4bd905486c318dc3a7e626de5aeb6e6167e ] + @@ -12 +13,0 @@ -Cc: stable@dpdk.org