From patchwork Sun Jan 28 11:58:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Duszynski X-Patchwork-Id: 34583 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C541A1B2C1; Sun, 28 Jan 2018 12:59:03 +0100 (CET) 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) 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:in-reply-to:references; bh=zZ6dYsGCXbDiYYfr9fAsO8Tp+PA4YBUunar64vnIOTU=; b=B0wANMOSdhej5rMHDvExE7aeT5p5jlYHVK4TbITFaMT57IeY/vSVNx0Q9UmPfDDopD koYq3AtJ6cdDtpBRBD+skqQlkrx7o57m6YE3CWWmonNtalC3OK1lYZHbSMsgWcMmUMTi 0P+CimLxXluk2+icWdy0KYGbn9X/xS/ND9oRZIcM+Lv1Ww8+nEDSPEFC52LAebckessO nHXlVB5YPUKKLasq1er17YsGYvCLNS7/ct15UFYHJLdc6suKLDVkkIfYPmRYUPFcVXux 0Y1j58e1wtf6GU8jhVLdNV093pxZ9eQj1eULPmlSClZWT604V3LEiRk1kZe6eIx6dgSo GS9Q== 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; bh=zZ6dYsGCXbDiYYfr9fAsO8Tp+PA4YBUunar64vnIOTU=; b=o/JyPlPRtR7rl3F4VoKMSUliJ1XAsTzqQsWrWCsLcpXq7CUbO6E4T4zQsdNy6jbJkB Wh+uwHKwsWGh7CnLw3dyVWsFCPPpXHisdNP+0vvJGfDQV57H2D6rJRkeBiifkCJ7t2GG sWNN0tzS4pAJpLR+tvQ794sjiKilSQIiNrR/py57S7GJy8yqR70M4e6tOLYB+EBPshay SyyO/Wjyzfxh++cl6j+C2GAWK7GFR7tKLfQP5KIe6MgWZonvcjNxJ9wQtZcLApAU1f23 rRVGNyjf2F9mrPFr3KS9z+z1OTPCZZcdQ1mWNYoDSqeLcXIEowGV3EqLUWwo36ZYRCIm CUgA== X-Gm-Message-State: AKwxyteFvsRzijVGspBh53X5LQq/oJX4j+b65DUPNtmoiwFn9FaoXDV6 56gCx8TxbU3KSURWSjODLe0zJJEHcss= X-Google-Smtp-Source: AH8x224WYC9VdKdMTHtkryT9CijJIiSovhkXzk7e2g8mK8+TJXi2CZy2O8qtnX8pvoZcJdpz/joQSQ== X-Received: by 10.46.3.18 with SMTP id 18mr11253118ljd.68.1517140741145; Sun, 28 Jan 2018 03:59:01 -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 x80sm2417330lfb.60.2018.01.28.03.58.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 28 Jan 2018 03:59:00 -0800 (PST) From: Tomasz Duszynski To: dev@dpdk.org Cc: wenzhuo.lu@intel.com, jingjing.wu@intel.com, jasvinder.singh@intel.com, Tomasz Duszynski Date: Sun, 28 Jan 2018 12:58:39 +0100 Message-Id: <1517140719-18237-1-git-send-email-tdu@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515678563-13424-1-git-send-email-tdu@semihalf.com> References: <1515678563-13424-1-git-send-email-tdu@semihalf.com> 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: , 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 Acked-by: Adrien Mazarguil --- app/test-pmd/config.c | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 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. */