[PATCH 07/17] net/nfp: fix flow rule match data problem
Chaoyong He
chaoyong.he at corigine.com
Mon Jun 24 03:57:13 CEST 2024
From: Long Wu <long.wu at corigine.com>
The port and port mask field of 'struct nfp_net_cmsg_match_v4'
are in the wrong position, and this will cause firmware not
work as expected.
Fixes: 42eabda06b0f ("net/nfp: support IPv4 flow item")
Cc: chaoyong.he at corigine.com
Cc: stable at dpdk.org
Signed-off-by: Long Wu <long.wu at corigine.com>
Reviewed-by: Chaoyong He <chaoyong.he at corigine.com>
Reviewed-by: Peng Zhang <peng.zhang at corigine.com>
---
drivers/net/nfp/nfp_net_cmsg.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/nfp/nfp_net_cmsg.h b/drivers/net/nfp/nfp_net_cmsg.h
index 4fab462cb9..b3d9bc33cf 100644
--- a/drivers/net/nfp/nfp_net_cmsg.h
+++ b/drivers/net/nfp/nfp_net_cmsg.h
@@ -52,10 +52,10 @@ struct nfp_net_cmsg_match_v4 {
uint32_t src_ipv4_mask;
uint32_t dst_ipv4;
uint32_t dst_ipv4_mask;
- uint16_t src_port;
uint16_t src_port_mask;
- uint16_t dst_port;
+ uint16_t src_port;
uint16_t dst_port_mask;
+ uint16_t dst_port;
};
/**
--
2.39.1
More information about the dev
mailing list