Skip to contentSkip to conversation

hv_netvsc: Fix the variable sizes in ipsecv2 and rsc offload

PATCH In review Haiyang Zhang 3 participants 3 messages Jun 14, 2018 – Jun 15, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hv_netvsc: Fix the variable sizes in ipsecv2 and rsc offload

From: Haiyang Zhang <[email protected]>

These fields in struct ndis_ipsecv2_offload and struct ndis_rsc_offload are one byte according to the specs. This patch defines them with the right size.

---
 drivers/net/hyperv/hyperv_net.h | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)
drivers/net/hyperv/hyperv_net.h +13 -13
index 23304aca25f9..84eaaa6368a2 100644
@@ -1277,17 +1277,17 @@ struct ndis_lsov2_offload {
 
 struct ndis_ipsecv2_offload {
 	u32	encap;
-	u16	ip6;
-	u16	ip4opt;
-	u16	ip6ext;
-	u16	ah;
-	u16	esp;
-	u16	ah_esp;
-	u16	xport;
-	u16	tun;
-	u16	xport_tun;
-	u16	lso;
-	u16	extseq;
+	u8	ip6;
+	u8	ip4opt;
+	u8	ip6ext;
+	u8	ah;
+	u8	esp;
+	u8	ah_esp;
+	u8	xport;
+	u8	tun;
+	u8	xport_tun;
+	u8	lso;
+	u8	extseq;
 	u32	udp_esp;
 	u32	auth;
 	u32	crypto;
@@ -1295,8 +1295,8 @@ struct ndis_ipsecv2_offload {
 };
 
 struct ndis_rsc_offload {
-	u16	ip4;
-	u16	ip6;
+	u8	ip4;
+	u8	ip6;
 };
 
 struct ndis_encap_offload {
Signature · 1 line
2.17.1
maintainer
#1 lore raw

Bug fixes should be targetted at net, not net-next. Furthermore, net-next is closed.

maintainer
#2 lore raw
Quoted 14 lines

-----Original Message-----
From: David Miller <[email protected]>
Sent: Thursday, June 14, 2018 8:00 PM
To: Haiyang Zhang <[email protected]>; [email protected]
Cc: [email protected]; KY Srinivasan <[email protected]>; Stephen Hemminger <[email protected]>; [email protected]; [email protected]; [email protected]; linux- [email protected]
Subject: Re: [PATCH net-next] hv_netvsc: Fix the variable sizes in ipsecv2 and rsc offload

Quoted 2 lines

Bug fixes should be targetted at net, not net-next. Furthermore, net-next is closed.

Thanks for the reminder. I just sent out the patch to "net" tree.

Thanks,
- Haiyang