From: Wisam Jaddo Date: Sun, 30 Aug 2020 11:15:40 +0000 (+0000) Subject: app/flow-perf: fix IPv4 source matching X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=cfa7554de1fa4162f1d2a3aa556a893a38735050;p=dpdk.git app/flow-perf: fix IPv4 source matching All value must be converted into intended endianness. Fixes: bf3688f1e816 ("app/flow-perf: add insertion rate calculation") Cc: stable@dpdk.org Signed-off-by: Wisam Jaddo Acked-by: Alexander Kozyrev --- diff --git a/app/test-flow-perf/items_gen.c b/app/test-flow-perf/items_gen.c index cc031f24a5..8277ac70da 100644 --- a/app/test-flow-perf/items_gen.c +++ b/app/test-flow-perf/items_gen.c @@ -64,7 +64,7 @@ add_ipv4(struct rte_flow_item *items, memset(&ipv4_spec, 0, sizeof(struct rte_flow_item_ipv4)); memset(&ipv4_mask, 0, sizeof(struct rte_flow_item_ipv4)); - ipv4_spec.hdr.src_addr = para.src_ip; + ipv4_spec.hdr.src_addr = RTE_BE32(para.src_ip); ipv4_mask.hdr.src_addr = RTE_BE32(0xffffffff); items[items_counter].type = RTE_FLOW_ITEM_TYPE_IPV4;