From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f194.google.com (mail-wr0-f194.google.com [209.85.128.194]) by dpdk.org (Postfix) with ESMTP id BB75F1B868 for ; Tue, 15 May 2018 15:48:47 +0200 (CEST) Received: by mail-wr0-f194.google.com with SMTP id p5-v6so200039wre.12 for ; Tue, 15 May 2018 06:48:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=gEqTObOTTDpldT7uaNGcCxbE9pO13GLevzxoTBmtWt8=; b=Q6ZvmcsuCxbzUlpk2a4JVxUGn5m7CB8fxF/CazNX+8COdr+3grckleVXZSAUhAjDXF O+5xtIKvR4RsM/wB0T60lCgnEFDzYsYJvJJHei5tiXan8gmBXuR2E5+YQDPlu1YoFZuz VN1dmsE6wi+dkepM+9DD1ZhcVjosIxijZEFP1E9omm7iXq5SQ4Fo3LFtQJy6KYL+PmB+ TCB6Qpqodp67pXzPPoY/3QrdbDz9FUASfnhoJvOB70mGDQKroTmbUzE5ZLzBSNBzKwTv HX1hJ5u0hETKUqVD8VZi75QUgBKHYnV7+QmXp1ro/0doYAQQ/Io1f7I3uzh+CI9V0q/z nSMw== 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=gEqTObOTTDpldT7uaNGcCxbE9pO13GLevzxoTBmtWt8=; b=INYYPikoeX7O5Ymux5sADX8aSLX6F5uLsC/b1H1OCwjMH3TQFsHKFD9H5sT2aNg93P k5wnEmpoVg9StCtoLsttt6tG1rFYie0qmeGtJOImfgXXhTiZCNw1FTzTX+ientLovoVH Hm5K1sYUofiVomJBg5ZgA81PTdPuSNcxtmccdJQiAoDTnfZTRukJe0OnUU0PYEd2bWgj xhYYPCtaxZNCe8rgbd8FoZEqHYHnHyWq0Bkcyuq8IdKLITPDMbDukX2Sfy5qaV0RQTRh nrBcbMAGoThrIaDO3aNaDyNsrMSXPLoyc1LxfRjJIcLOXQnr0Qq4Is7Mw7KKLDwRo6C2 Mqqg== X-Gm-Message-State: ALKqPwd0oQVLr8qRdCNuBB6pZWFXmrNt2+/1fm1MGbyud8yE42TUKIDW EGgQ8pgJLGvlTF24cKvY0/I= X-Google-Smtp-Source: AB8JxZrDZEiBTdEa0gVO0U4MvJWYxHKEPq6MYWGwnXHiTsLEuKuHlGat2hZEsAI0bBCuC0xtMC+jIw== X-Received: by 2002:adf:9814:: with SMTP id v20-v6mr11065654wrb.93.1526392127474; Tue, 15 May 2018 06:48:47 -0700 (PDT) Received: from localhost (slip139-92-244-193.lon.uk.prserv.net. [139.92.244.193]) by smtp.gmail.com with ESMTPSA id b185-v6sm610337wmb.25.2018.05.15.06.48.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 May 2018 06:48:46 -0700 (PDT) From: luca.boccassi@gmail.com To: Jasvinder Singh Cc: dpdk stable Date: Tue, 15 May 2018 14:46:50 +0100 Message-Id: <20180515134731.9337-39-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180515134731.9337-1-luca.boccassi@gmail.com> References: <20180503110612.12146-2-luca.boccassi@gmail.com> <20180515134731.9337-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'test/pipeline: fix type of table entry parameter' has been queued to stable release 18.02.2 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2018 13:48:48 -0000 Hi, FYI, your patch has been queued to stable release 18.02.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/16/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From 0e0449eb20a5e71a96c5dad875adec05b3603fa6 Mon Sep 17 00:00:00 2001 From: Jasvinder Singh Date: Mon, 14 May 2018 14:35:24 +0100 Subject: [PATCH] test/pipeline: fix type of table entry parameter [ upstream commit 37181824ccedb10d2a8e3f37d12d5815937db586 ] Fixes the wrong argument in table action miss function. Fixes: 4c387fcdf777 ("pipeline: add new functions for action handlers") Signed-off-by: Jasvinder Singh --- test/test/test_table_pipeline.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/test/test/test_table_pipeline.c b/test/test/test_table_pipeline.c index 5ec4c5244..441338ac0 100644 --- a/test/test/test_table_pipeline.c +++ b/test/test/test_table_pipeline.c @@ -71,7 +71,7 @@ table_action_stub_hit(struct rte_pipeline *p, struct rte_mbuf **pkts, static int table_action_stub_miss(struct rte_pipeline *p, struct rte_mbuf **pkts, - uint64_t pkts_mask, struct rte_pipeline_table_entry **entry, void *arg); + uint64_t pkts_mask, struct rte_pipeline_table_entry *entry, void *arg); rte_pipeline_table_action_handler_hit table_action_0x00(__attribute__((unused)) struct rte_pipeline *p, @@ -105,7 +105,7 @@ static int table_action_stub_miss(struct rte_pipeline *p, __attribute__((unused)) struct rte_mbuf **pkts, uint64_t pkts_mask, - __attribute__((unused)) struct rte_pipeline_table_entry **entry, + __attribute__((unused)) struct rte_pipeline_table_entry *entry, __attribute__((unused)) void *arg) { printf("STUB Table Action Miss - setting mask to 0x%"PRIx64"\n", @@ -517,8 +517,7 @@ test_table_pipeline(void) /* TEST - one packet per port */ action_handler_hit = NULL; - action_handler_miss = - (rte_pipeline_table_action_handler_miss) table_action_stub_miss; + action_handler_miss = table_action_stub_miss; table_entry_default_action = RTE_PIPELINE_ACTION_PORT; override_miss_mask = 0x01; /* one packet per port */ setup_pipeline(e_TEST_STUB); @@ -553,8 +552,7 @@ test_table_pipeline(void) printf("TEST - two tables, hitmask override to 0x01\n"); connect_miss_action_to_table = 1; - action_handler_miss = - (rte_pipeline_table_action_handler_miss)table_action_stub_miss; + action_handler_miss = table_action_stub_miss; override_miss_mask = 0x01; setup_pipeline(e_TEST_STUB); if (test_pipeline_single_filter(e_TEST_STUB, 2) < 0) -- 2.14.2