From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp17.mail.ru (smtp17.mail.ru [94.100.176.154]) by dpdk.org (Postfix) with ESMTP id 65F02B7B9 for ; Fri, 20 Feb 2015 23:35:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=bk.ru; s=mail; h=Message-Id:Date:Subject:Cc:To:From; bh=Io2EdWiLZjqOkdvinuvrt0gU9N4sM3dah5NmPCpPL/E=; b=Y8yFqY9kqnpBjlNJWeyU4JzWSNrk6VnH2HMpS+g/vc3eizHP4R/s9sk6faCasYMXpvfgV6YLSDFnZfGoV2MovyAl/E5P1UON4uuLreZvMpEdofRbJL6cjSb6ZmNF+VGSdM38KG7b+In9IJaRdbfg2Sf4yeNuay4jv6fYEYUSvkA=; Received: from [90.154.64.155] (port=62218 helo=localhost.localdomain) by smtp17.mail.ru with esmtpa (envelope-from ) id 1YOwAi-0000ys-EC; Sat, 21 Feb 2015 01:35:49 +0300 From: Ildar Mustafin To: dev@dpdk.org Date: Sat, 21 Feb 2015 01:35:27 +0300 Message-Id: <1424471727-18823-1-git-send-email-imustafin@bk.ru> X-Mailer: git-send-email 1.9.1 X-Spam: Not detected X-Mras: Ok Subject: [dpdk-dev] [PATCH] RTE_PIPELINE_ACTION_PORT_META fix for non-default entries X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Feb 2015 22:35:50 -0000 --- lib/librte_pipeline/rte_pipeline.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/librte_pipeline/rte_pipeline.c b/lib/librte_pipeline/rte_pipeline.c index ac7e887..36d92c9 100644 --- a/lib/librte_pipeline/rte_pipeline.c +++ b/lib/librte_pipeline/rte_pipeline.c @@ -999,6 +999,7 @@ rte_pipeline_compute_masks(struct rte_pipeline *p, uint64_t pkts_mask) { p->action_mask1[RTE_PIPELINE_ACTION_DROP] = 0; p->action_mask1[RTE_PIPELINE_ACTION_PORT] = 0; + p->action_mask1[RTE_PIPELINE_ACTION_PORT_META] = 0; p->action_mask1[RTE_PIPELINE_ACTION_TABLE] = 0; if ((pkts_mask & (pkts_mask + 1)) == 0) { @@ -1224,6 +1225,7 @@ rte_pipeline_run(struct rte_pipeline *p) pkts_mask = RTE_LEN2MASK(n_pkts, uint64_t); p->action_mask0[RTE_PIPELINE_ACTION_DROP] = 0; p->action_mask0[RTE_PIPELINE_ACTION_PORT] = 0; + p->action_mask0[RTE_PIPELINE_ACTION_PORT_META] = 0; p->action_mask0[RTE_PIPELINE_ACTION_TABLE] = 0; /* Input port user actions */ @@ -1300,6 +1302,9 @@ rte_pipeline_run(struct rte_pipeline *p) p->action_mask0[RTE_PIPELINE_ACTION_PORT] |= p->action_mask1[ RTE_PIPELINE_ACTION_PORT]; + p->action_mask0[RTE_PIPELINE_ACTION_PORT_META] |= + p->action_mask1[ + RTE_PIPELINE_ACTION_PORT_META]; p->action_mask0[RTE_PIPELINE_ACTION_TABLE] |= p->action_mask1[ RTE_PIPELINE_ACTION_TABLE]; -- 1.9.1