From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tomasz Duszynski Subject: [PATCH] app/testpmd: add meter to the actions table Date: Thu, 11 Jan 2018 14:49:23 +0100 Message-ID: <1515678563-13424-1-git-send-email-tdu@semihalf.com> Cc: wenzhuo.lu@intel.com, jingjing.wu@intel.com, Tomasz Duszynski To: dev@dpdk.org Return-path: Received: from mail-lf0-f68.google.com (mail-lf0-f68.google.com [209.85.215.68]) by dpdk.org (Postfix) with ESMTP id 98F88A497 for ; Thu, 11 Jan 2018 14:49:44 +0100 (CET) Received: by mail-lf0-f68.google.com with SMTP id m8so2866055lfc.6 for ; Thu, 11 Jan 2018 05:49:44 -0800 (PST) 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 --- 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