From b8acbd654c1a9886dfcff9143b68522d6e0d74bb Mon Sep 17 00:00:00 2001 From: Tomasz Duszynski Date: Sun, 28 Jan 2018 12:58:39 +0100 Subject: [PATCH] app/testpmd: add meter to flow actions table 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. Fixes: 30ffb4e67ee3 ("app/testpmd: add commands traffic metering and policing") Cc: stable@dpdk.org Signed-off-by: Tomasz Duszynski Acked-by: Jasvinder Singh Acked-by: Adrien Mazarguil --- 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 8c920a2c7d..46da07f2e8 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -1062,6 +1062,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.20.1