* [dpdk-dev] [PATCH] examples/flow_filtering: fix incorrect port id size
@ 2018-01-24 6:10 Zhiyong Yang
2018-01-25 14:05 ` Ferruh Yigit
0 siblings, 1 reply; 3+ messages in thread
From: Zhiyong Yang @ 2018-01-24 6:10 UTC (permalink / raw)
To: dev; +Cc: stable, orika, ferruh.yigit, thomas, Zhiyong Yang
Ethdev port id has been extended 16bits from 8bits in DPDK 17.11 release,
the patch fixes mismatch use.
Fixes: 4a3ef59a10c8 ("examples/flow_filtering: add simple demo of flow API")
Cc: stable@dpdk.org
Cc: orika@mellanox.com
Cc: ferruh.yigit@intel.com
Cc: thomas@monjalon.net
Signed-off-by: Zhiyong Yang <zhiyong.yang@intel.com>
---
examples/flow_filtering/flow_blocks.c | 4 ++--
examples/flow_filtering/main.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/examples/flow_filtering/flow_blocks.c b/examples/flow_filtering/flow_blocks.c
index f92df1024..61b045af3 100644
--- a/examples/flow_filtering/flow_blocks.c
+++ b/examples/flow_filtering/flow_blocks.c
@@ -33,7 +33,7 @@
#define MAX_PATTERN_NUM 4
struct rte_flow *
-generate_ipv4_flow(uint8_t port_id, uint16_t rx_q,
+generate_ipv4_flow(uint16_t port_id, uint16_t rx_q,
uint32_t src_ip, uint32_t src_mask,
uint32_t dest_ip, uint32_t dest_mask,
struct rte_flow_error *error);
@@ -62,7 +62,7 @@ generate_ipv4_flow(uint8_t port_id, uint16_t rx_q,
* A flow if the rule could be created else return NULL.
*/
struct rte_flow *
-generate_ipv4_flow(uint8_t port_id, uint16_t rx_q,
+generate_ipv4_flow(uint16_t port_id, uint16_t rx_q,
uint32_t src_ip, uint32_t src_mask,
uint32_t dest_ip, uint32_t dest_mask,
struct rte_flow_error *error)
diff --git a/examples/flow_filtering/main.c b/examples/flow_filtering/main.c
index 58e26859f..cc955cd90 100644
--- a/examples/flow_filtering/main.c
+++ b/examples/flow_filtering/main.c
@@ -58,7 +58,7 @@
static volatile bool force_quit;
-static uint8_t port_id;
+static uint16_t port_id;
static uint16_t nr_queues = 5;
static uint8_t selected_queue = 1;
struct rte_mempool *mbuf_pool;
--
2.13.3
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [PATCH] examples/flow_filtering: fix incorrect port id size
2018-01-24 6:10 [dpdk-dev] [PATCH] examples/flow_filtering: fix incorrect port id size Zhiyong Yang
@ 2018-01-25 14:05 ` Ferruh Yigit
2018-01-25 14:11 ` [dpdk-dev] [dpdk-stable] " Ferruh Yigit
0 siblings, 1 reply; 3+ messages in thread
From: Ferruh Yigit @ 2018-01-25 14:05 UTC (permalink / raw)
To: Zhiyong Yang, dev; +Cc: stable, orika, thomas
On 1/24/2018 6:10 AM, Zhiyong Yang wrote:
> Ethdev port id has been extended 16bits from 8bits in DPDK 17.11 release,
> the patch fixes mismatch use.
>
> Fixes: 4a3ef59a10c8 ("examples/flow_filtering: add simple demo of flow API")
> Cc: stable@dpdk.org
> Cc: orika@mellanox.com
> Cc: ferruh.yigit@intel.com
> Cc: thomas@monjalon.net
>
> Signed-off-by: Zhiyong Yang <zhiyong.yang@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [dpdk-stable] [PATCH] examples/flow_filtering: fix incorrect port id size
2018-01-25 14:05 ` Ferruh Yigit
@ 2018-01-25 14:11 ` Ferruh Yigit
0 siblings, 0 replies; 3+ messages in thread
From: Ferruh Yigit @ 2018-01-25 14:11 UTC (permalink / raw)
To: Zhiyong Yang, dev; +Cc: stable, orika, thomas
On 1/25/2018 2:05 PM, Ferruh Yigit wrote:
> On 1/24/2018 6:10 AM, Zhiyong Yang wrote:
>> Ethdev port id has been extended 16bits from 8bits in DPDK 17.11 release,
>> the patch fixes mismatch use.
>>
>> Fixes: 4a3ef59a10c8 ("examples/flow_filtering: add simple demo of flow API")
>> Cc: stable@dpdk.org
>> Cc: orika@mellanox.com
>> Cc: ferruh.yigit@intel.com
>> Cc: thomas@monjalon.net
>>
>> Signed-off-by: Zhiyong Yang <zhiyong.yang@intel.com>
>
> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
Applied to dpdk-next-net/master, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-01-25 14:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-24 6:10 [dpdk-dev] [PATCH] examples/flow_filtering: fix incorrect port id size Zhiyong Yang
2018-01-25 14:05 ` Ferruh Yigit
2018-01-25 14:11 ` [dpdk-dev] [dpdk-stable] " Ferruh Yigit
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).