[dpdk-dev] rte_flow: Different devices have different field indianess?

Andrew Rybchenko arybchenko at solarflare.com
Fri Mar 27 15:44:16 CET 2020


On 3/27/20 5:29 PM, Tom Barbette wrote:
> Hi all,
> 
> It seems rte_flow_item_eth takes its ethertype in host byte order with
> i40e, but in network byte order with mlx5.

If so, it is definitely bug in i40e, since struct rte_flow_item_eth
defines type as rte_be16_t type.

> Wouldn't it be nice to unify that? Else is there a way to know in which
> byte order the spec should be given? I guess that expands to all fields,
> but I only compared the ethertype field.
> 
> Thanks,
> 
> Tom



More information about the dev mailing list