Skip to contentSkip to conversation

net/iavf: fix build error

PATCH Applied Radu Nicolau 3 participants 3 messages Oct 27, 2021 – Oct 28, 2021 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/iavf: fix build error

Fix Freebsd13 and Win10 build error.

Fixes 9e84ce6ecd27 ("net/iavf: add iAVF IPsec inline crypto support")
---
 drivers/net/iavf/iavf_ipsec_crypto.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/iavf/iavf_ipsec_crypto.c +1 -1
index 4d4830f4c9..a8022f8ed7 100644
@@ -509,7 +509,7 @@ iavf_ipsec_crypto_security_association_add(struct iavf_adapter *adapter,
 			htonl(conf->ipsec.tunnel.ipv4.dst_ip.s_addr);
 	} else {
 		uint32_t *v6_dst_addr =
-			conf->ipsec.tunnel.ipv6.dst_addr.s6_addr32;
+			(uint32_t *)conf->ipsec.tunnel.ipv6.dst_addr.s6_addr;
 
 		sa_cfg->virtchnl_ip_type = VIRTCHNL_IPV6;
 
Signature · 1 line
2.25.1
Acked-by on v1 1/1 Applied
#1 lore raw
Quoted 35 lines

-----Original Message-----
From: Nicolau, Radu <[email protected]>
Sent: Wednesday, October 27, 2021 5:51 PM
To: Wu, Jingjing <[email protected]>; Xing, Beilei <[email protected]>
Cc: [email protected]; Zhang, Qi Z <[email protected]>; Nicolau, Radu <[email protected]>
Subject: [PATCH] net/iavf: fix build error

Fix Freebsd13 and Win10 build error.

Fixes 9e84ce6ecd27 ("net/iavf: add iAVF IPsec inline crypto support")
---
 drivers/net/iavf/iavf_ipsec_crypto.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/iavf/iavf_ipsec_crypto.c +1 -2
index 4d4830f4c9..a8022f8ed7 100644
@@ -509,7 +509,7 @@ iavf_ipsec_crypto_security_association_add(struct
 iavf_adapter *adapter,
 			htonl(conf->ipsec.tunnel.ipv4.dst_ip.s_addr);
 	} else {
 		uint32_t *v6_dst_addr =
-			conf->ipsec.tunnel.ipv6.dst_addr.s6_addr32;
+			(uint32_t *)conf->ipsec.tunnel.ipv6.dst_addr.s6_addr;
 
 		sa_cfg->virtchnl_ip_type = VIRTCHNL_IPV6;
 
--
Quoted 1 line

2.25.1

Applied to dpdk-next-net-intel.

Thanks
Qi

#2 lore raw
In reply to Radu Nicolau
Quoted 5 lines · Radu Nicolau

Fix Freebsd13 and Win10 build error.

Fixes 9e84ce6ecd27 ("net/iavf: add iAVF IPsec inline crypto support")

Can you please squash this fix to the original set, in its new version?

Quoted 18 lines
---
  drivers/net/iavf/iavf_ipsec_crypto.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/iavf/iavf_ipsec_crypto.c +1 -1
index 4d4830f4c9..a8022f8ed7 100644
@@ -509,7 +509,7 @@ iavf_ipsec_crypto_security_association_add(struct iavf_adapter *adapter,
  			htonl(conf->ipsec.tunnel.ipv4.dst_ip.s_addr);
  	} else {
  		uint32_t *v6_dst_addr =
-			conf->ipsec.tunnel.ipv6.dst_addr.s6_addr32;
+			(uint32_t *)conf->ipsec.tunnel.ipv6.dst_addr.s6_addr;
 
  		sa_cfg->virtchnl_ip_type = VIRTCHNL_IPV6;