From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=V3W+cT4fYbuKzt1pXq6AKIqyzGu3UkMDIHHN1QyxIY8=; b=lKKOnLvOYFYgQp4zWc3tnJeA8gZjLUE5zAqU3s0uNaQN4LsoRuCBDKOqNpx4Ivsy+r ybW2FpBOgHRkjgQUPgBVEt65EXoeuEgGv068Ptd+ZyLW33pDJRmMs02LJLjgR0vggX3e IWkUsZkc/LuDsWwkSCLNoYuKtZDr1NBWzRT9TAOci7BW+z7W+QsNNWN3C5EMWicDlhgC PS1YzCgpO5fD37vPFM39VI4h80NQOGzfsjvfSml3RG85MMLwUafICEGopDRBmms3254D 0uOhh9+9uBnBJwVYvOFe5gl40g6PP6z1PTBAYCL+xi3XCpQbJNIUX8G28vBi87JBSNC8 PKig== 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; bh=V3W+cT4fYbuKzt1pXq6AKIqyzGu3UkMDIHHN1QyxIY8=; b=qwmEkkcisFgivH2WbENslZTJHw5MgpgiJ7MJg7A3awxUGWPi2KS6OonVDggkjb0XTv zZBCqfU+j2LLKqjVfrGxr2WVVyANvp/OXCAYQ2rOtQgq2AFAw2b8sd4MwqIhPxZ61odI E1qgmkqi4IIOc9peAh35UItkiHxm9jnm8O4irs9cRH3x9lKucYbgBBwSrayAyFqJf2mz 2iFWNv2Dfrk/jiKco9QMTnUQTnRBB2+kmxcmtfbcEj+svYtbJzCzlgGqysfo5PJKPEgJ caURLYJEPzynuuWk9sEKBjD27bZgIhgryHyNFmTZ7n5obxBUHmJQmMeZNXc5IMe7RS45 xiLQ== X-Gm-Message-State: AKwxytcuGw8JNaSNlqL3dvUfRJK1qphWznShbLR8CBa8q/bJx9YYyagi yKMAEwFfksh8znYSa9jx/kSCEPy/eK4= X-Google-Smtp-Source: ACJfBouMZV8YYQWL5ulEO5dl2929mfQu7C9KV+au99SMm29tDek5TZlFdSpdHlYCWIzG8wuWa37XPg== X-Received: by 10.46.126.5 with SMTP id z5mr2544859ljc.84.1515678583901; Thu, 11 Jan 2018 05:49:43 -0800 (PST) Received: from sh.semihalf.local (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id k77sm1399033lfe.48.2018.01.11.05.49.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 11 Jan 2018 05:49:43 -0800 (PST) From: Tomasz Duszynski To: dev@dpdk.org Cc: wenzhuo.lu@intel.com, jingjing.wu@intel.com, Tomasz Duszynski Date: Thu, 11 Jan 2018 14:49:23 +0100 Message-Id: <1515678563-13424-1-git-send-email-tdu@semihalf.com> X-Mailer: git-send-email 2.7.4 Subject: [dpdk-dev] [PATCH] app/testpmd: add meter to the actions table X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jan 2018 13:49:44 -0000 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