Skip to content

Commit

Permalink
hv_netvsc: Fix the variable sizes in ipsecv2 and rsc offload
Browse files Browse the repository at this point in the history
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 <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Haiyang Zhang authored and David S. Miller committed Jun 15, 2018
1 parent f1693c6 commit 06bdf28
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions drivers/net/hyperv/hyperv_net.h
Original file line number Diff line number Diff line change
Expand Up @@ -1277,26 +1277,26 @@ 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;
u32 sa_caps;
};

struct ndis_rsc_offload {
u16 ip4;
u16 ip6;
u8 ip4;
u8 ip6;
};

struct ndis_encap_offload {
Expand Down

0 comments on commit 06bdf28

Please sign in to comment.