git: b05c1dd0d162 - stable/12 - hyperv/vmbus: Fix the wrong size in ndis_offload structure

Wei Hu whu at FreeBSD.org
Mon Mar 15 05:05:31 UTC 2021


The branch stable/12 has been updated by whu:

URL: https://cgit.FreeBSD.org/src/commit/?id=b05c1dd0d1622fba5810513f3cefee4e34041c36

commit b05c1dd0d1622fba5810513f3cefee4e34041c36
Author:     Wei Hu <whu at FreeBSD.org>
AuthorDate: 2019-07-09 08:21:14 +0000
Commit:     Wei Hu <whu at FreeBSD.org>
CommitDate: 2021-03-15 05:03:58 +0000

    hyperv/vmbus: Fix the wrong size in ndis_offload structure
    
    Submitted by:   whu
    MFC after:      2 weeks
    Sponsored by:   Microsoft
    
    (cherry picked from commit 23a499203c5b3fd74f781d1383269a6e168588cf)
---
 sys/dev/hyperv/netvsc/ndis.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/dev/hyperv/netvsc/ndis.h b/sys/dev/hyperv/netvsc/ndis.h
index 4e34b51ca30f..32b6aa307452 100644
--- a/sys/dev/hyperv/netvsc/ndis.h
+++ b/sys/dev/hyperv/netvsc/ndis.h
@@ -115,8 +115,8 @@ struct ndis_offload_params {
 	/* NDIS >= 6.30 */
 	uint8_t			ndis_rsc_ip4;	/* NDIS_OFFLOAD_RSC_ */
 	uint8_t			ndis_rsc_ip6;	/* NDIS_OFFLOAD_RSC_ */
-	uint8_t			ndis_encap;	/* NDIS_OFFLOAD_SET_ */
-	uint8_t			ndis_encap_types;/* NDIS_ENCAP_TYPE_ */
+	uint32_t		ndis_encap;	/* NDIS_OFFLOAD_SET_ */
+	uint32_t		ndis_encap_types;/* NDIS_ENCAP_TYPE_ */
 };
 
 #define	NDIS_OFFLOAD_PARAMS_SIZE	sizeof(struct ndis_offload_params)


More information about the dev-commits-src-all mailing list