* [PATCH] net/nfp: remove unneeded data endian convert operation
@ 2023-06-12 3:16 Chaoyong He
2023-06-12 10:21 ` Ferruh Yigit
0 siblings, 1 reply; 2+ messages in thread
From: Chaoyong He @ 2023-06-12 3:16 UTC (permalink / raw)
To: dev; +Cc: oss-drivers, niklas.soderlund, Chaoyong He
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(-)
diff --git a/drivers/net/nfp/nfp_flow.c b/drivers/net/nfp/nfp_flow.c
index 14749f03a2..30b96b15ef 100644
--- a/drivers/net/nfp/nfp_flow.c
+++ b/drivers/net/nfp/nfp_flow.c
@@ -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");
--
2.39.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] net/nfp: remove unneeded data endian convert operation
2023-06-12 3:16 [PATCH] net/nfp: remove unneeded data endian convert operation Chaoyong He
@ 2023-06-12 10:21 ` Ferruh Yigit
0 siblings, 0 replies; 2+ messages in thread
From: Ferruh Yigit @ 2023-06-12 10:21 UTC (permalink / raw)
To: Chaoyong He, dev; +Cc: oss-drivers, niklas.soderlund
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-06-12 10:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-12 3:16 [PATCH] net/nfp: remove unneeded data endian convert operation Chaoyong He
2023-06-12 10:21 ` 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).