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 <wisamm@mellanox.com>
Acked-by: Alexander Kozyrev <akozyrev@nvidia.com>
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;