From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tomasz Duszynski Subject: [PATCH] app/testpmd: add meter to the actions table Date: Sun, 28 Jan 2018 12:58:39 +0100 Message-ID: <1517140719-18237-1-git-send-email-tdu@semihalf.com> References: <1515678563-13424-1-git-send-email-tdu@semihalf.com> Cc: wenzhuo.lu@intel.com, jingjing.wu@intel.com, jasvinder.singh@intel.com, Tomasz Duszynski To: dev@dpdk.org Return-path: Received: from mail-lf0-f66.google.com (mail-lf0-f66.google.com [209.85.215.66]) by dpdk.org (Postfix) with ESMTP id BD5131B2BE for ; Sun, 28 Jan 2018 12:59:01 +0100 (CET) Received: by mail-lf0-f66.google.com with SMTP id 63so6023907lfv.4 for ; Sun, 28 Jan 2018 03:59:01 -0800 (PST) In-Reply-To: <1515678563-13424-1-git-send-email-tdu@semihalf.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Since METER action is supported by the testpmd application suitable entry should exist in flow actions information table. Without that testpmd will return error on adding a new flow to the list of flows attached to a given port. Signed-off-by: Tomasz Duszynski Acked-by: Jasvinder Singh --- app/test-pmd/config.c | 1 + 1 file changed, 1 insertion(+) diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index 0a84481..4ad19fb 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -1038,6 +1038,7 @@ static const struct { MK_FLOW_ACTION(RSS, sizeof(struct rte_flow_action_rss)), /* +queue[] */ MK_FLOW_ACTION(PF, 0), MK_FLOW_ACTION(VF, sizeof(struct rte_flow_action_vf)), + MK_FLOW_ACTION(METER, sizeof(struct rte_flow_action_meter)), }; /** Compute storage space needed by action configuration. */ -- 2.7.4