The former logic of set IPv6 source/destination address flow action can't get the right IPV6 address, a 32 bit big endian value is expected while a 8 bit value is provided. This caused the offloaded packets don't have the right IPv6 address as expected.
Fixes: 596ae2217214 ("net/nfp: support IPv6 source flow action") Fixes: 51384f79b264 ("net/nfp: support IPv6 destination flow action") Cc: sta...@dpdk.org Signed-off-by: Chaoyong He <chaoyong...@corigine.com> Reviewed-by: Niklas Söderlund <niklas.soderl...@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 41b722f4d8..0dd0d14f4a 100644 --- a/drivers/net/nfp/nfp_flow.c +++ b/drivers/net/nfp/nfp_flow.c @@ -2166,7 +2166,7 @@ nfp_flow_action_set_ipv6(char *act_data, set_ip->reserved = 0; for (i = 0; i < 4; i++) { - set_ip->ipv6[i].exact = set_ipv6->ipv6_addr[i * 4]; + set_ip->ipv6[i].exact = *(const rte_be32_t *)&set_ipv6->ipv6_addr[i * 4]; set_ip->ipv6[i].mask = RTE_BE32(0xffffffff); } } -- 2.39.1