Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp25690imm; Thu, 14 Jun 2018 14:41:35 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJFNbOz21ZZuWcGDmgx5havVPVtMfp27icZoGjTAPgl+SN8v3kOZngRMaT4wEa34apmsbXb X-Received: by 2002:a62:2394:: with SMTP id q20-v6mr11190988pfj.1.1529012495319; Thu, 14 Jun 2018 14:41:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529012495; cv=none; d=google.com; s=arc-20160816; b=geK8/4jtqJ66LbKJLh+bt9Cn6yw6+iGjWEhZBrkVMp9mceU4l+n/pS6mQs9fLJegSa T06rtpIIL35hahTgneJmiTJHirl0pXENbmGcCo5RewHV6TYEw9SDMk6bRVT6f0szWsWd MsCeXEG595ZFRIHU8Hw32Kz2IdgrHyVLeThIcuSjnmBsmqiwg0FiId0+3lW7EM0mNXrL c2z3YpHmh4Ezh2Ml2gMvdTv0McwehMfWam/JV/lz4HGEVC/Fx+P6C16O5ZmUuNWLSodf onUCy1OAQczCDJ1EhVOpETBd4DkABlJFMnPJL4gGT05nZiDS+UPPmTPhSC8wq/ED+kSd CJNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:reply-to:message-id:date:subject:cc:to :from:arc-authentication-results; bh=H0J0OjkUwqOM4oW/aSF75zlFLQOa5C+GJ4aLRYAgCTk=; b=eVtp7X7w8SJfZ+K9ll7J5P/JSjnu+ciUGImEAp/E4eEvlL3xiZmZDO4SGRYkBUinNC S1lCD4z0NCfj9tfzijUXlDjYUol3vtqrZl6ETbeuS6vtWMcNg5bQ3CSB7H34ilnKzJRn bG5HWC88DcXpUswBnSBR8gmVKkuU/il2RKChVBmMLYdJsl/AJQ5dJxTxK66Izz7Vx8HQ 2D6dpbDSfrtK7dECjDlq+v5gXw0R+dQ/jfUHPHsy7D8ACQNF7t9o1Y8SE1VqoLT5AXAy pXFn97wcdo/69WoYWhltjMuiEdrsR+eYR2J2TL1AbaQgkP4xkRj40YoZxqjgZlyZ0isF 7nIQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k191-v6si5250979pgd.19.2018.06.14.14.41.20; Thu, 14 Jun 2018 14:41:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964880AbeFNVky (ORCPT + 99 others); Thu, 14 Jun 2018 17:40:54 -0400 Received: from a2nlsmtp01-04.prod.iad2.secureserver.net ([198.71.225.38]:53184 "EHLO a2nlsmtp01-04.prod.iad2.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755410AbeFNVkw (ORCPT ); Thu, 14 Jun 2018 17:40:52 -0400 Received: from linuxonhyperv2.linuxonhyperv.com ([107.180.71.197]) by : HOSTING RELAY : with SMTP id TZyBfOqIMN7esTZyBfCJKr; Thu, 14 Jun 2018 14:39:51 -0700 x-originating-ip: 107.180.71.197 Received: from haiyangz by linuxonhyperv2.linuxonhyperv.com with local (Exim 4.91) (envelope-from ) id 1fTZyB-0000lG-GL; Thu, 14 Jun 2018 14:39:51 -0700 From: Haiyang Zhang To: davem@davemloft.net, netdev@vger.kernel.org Cc: haiyangz@microsoft.com, kys@microsoft.com, sthemmin@microsoft.com, olaf@aepfle.de, vkuznets@redhat.com, devel@linuxdriverproject.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next] hv_netvsc: Fix the variable sizes in ipsecv2 and rsc offload Date: Thu, 14 Jun 2018 14:39:12 -0700 Message-Id: <20180614213912.2889-1-haiyangz@linuxonhyperv.com> X-Mailer: git-send-email 2.17.1 Reply-To: haiyangz@microsoft.com X-CMAE-Envelope: MS4wfMu9h1AX3f6OiDQcl8mEzz9KE3ptGwU1WATuV/gkjh1MvMyPB3fYG20uI6ZKTuv9DQbq+BNhwvbxP7+R0n/zYDs7wrek5Fa9cwaQWAWsVJCBqCtCBALf 2nch93YR52xf2qmcU9Dz1VrzcG3Dkavc1/z9oPbnReQhy7/4GA8i/7aHUGetzkEget4tVOecAG3CoFU2L/0IEkv/2fdL1CtQaJ4FR9kmzyCNctIQBuxhJ4yV COaZOfdV64QrQRWmKiRQTP93npuHzNw3eO2D5YhyTrMSkgygekfckRWEpVJtxMyOKOsOO2gKcPy65Wd1b3MN0/vNohcX27IXXypx8SNqDWWlQmx8GcbPTXTQ 6slT6ai9ImJr7RvwYHyiYOUp82aGCDSAy4KgzOELQTT4sGbU7BVcVN1hVHEbLTsn4vivE9Nv4CUi1zLTK6yq64xfxE8aWx3/Q2I4Jok9ugh0VZfKZnxhUWVD V8n2EeazAWlu4ppNAM0HS4IGUWmgPhtZ7Tv4Pg== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Haiyang Zhang 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. Signed-off-by: Haiyang Zhang --- drivers/net/hyperv/hyperv_net.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/net/hyperv/hyperv_net.h b/drivers/net/hyperv/hyperv_net.h index 23304aca25f9..84eaaa6368a2 100644 --- a/drivers/net/hyperv/hyperv_net.h +++ b/drivers/net/hyperv/hyperv_net.h @@ -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 { -- 2.17.1