net/nfp: remove unneeded data endian convert operation
Checks
Commit Message
Both of the data types are CPU endian, so there is no need
to do the data endian convert operation.
Signed-off-by: Chaoyong He <chaoyong.he@corigine.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@corigine.com>
---
drivers/net/nfp/nfp_flow.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 6/12/2023 4:16 AM, Chaoyong He wrote:
> Both of the data types are CPU endian, so there is no need
> to do the data endian convert operation.
>
> Signed-off-by: Chaoyong He <chaoyong.he@corigine.com>
> Reviewed-by: Niklas Söderlund <niklas.soderlund@corigine.com>
>
Applied to dpdk-next-net/main, thanks.
@@ -727,7 +727,7 @@ nfp_flow_key_layers_calculate_items(const struct rte_flow_item items[],
return -ERANGE;
ethdev = &rte_eth_devices[port_id->id];
representor = ethdev->data->dev_private;
- key_ls->port = rte_cpu_to_be_32(representor->port_id);
+ key_ls->port = representor->port_id;
break;
case RTE_FLOW_ITEM_TYPE_VLAN:
PMD_DRV_LOG(DEBUG, "RTE_FLOW_ITEM_TYPE_VLAN detected");