Skip to content

Commit 06bdf28

Browse files
haiyangzdavem330
authored andcommitted
hv_netvsc: Fix the variable sizes in ipsecv2 and rsc offload
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. These structs are not in use right now, but will be used soon. Signed-off-by: Haiyang Zhang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent f1693c6 commit 06bdf28

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

drivers/net/hyperv/hyperv_net.h

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1277,26 +1277,26 @@ struct ndis_lsov2_offload {
12771277

12781278
struct ndis_ipsecv2_offload {
12791279
u32 encap;
1280-
u16 ip6;
1281-
u16 ip4opt;
1282-
u16 ip6ext;
1283-
u16 ah;
1284-
u16 esp;
1285-
u16 ah_esp;
1286-
u16 xport;
1287-
u16 tun;
1288-
u16 xport_tun;
1289-
u16 lso;
1290-
u16 extseq;
1280+
u8 ip6;
1281+
u8 ip4opt;
1282+
u8 ip6ext;
1283+
u8 ah;
1284+
u8 esp;
1285+
u8 ah_esp;
1286+
u8 xport;
1287+
u8 tun;
1288+
u8 xport_tun;
1289+
u8 lso;
1290+
u8 extseq;
12911291
u32 udp_esp;
12921292
u32 auth;
12931293
u32 crypto;
12941294
u32 sa_caps;
12951295
};
12961296

12971297
struct ndis_rsc_offload {
1298-
u16 ip4;
1299-
u16 ip6;
1298+
u8 ip4;
1299+
u8 ip6;
13001300
};
13011301

13021302
struct ndis_encap_offload {

0 commit comments

Comments
 (0)