Received: by 10.192.165.148 with SMTP id m20csp4861037imm; Tue, 8 May 2018 16:07:55 -0700 (PDT) X-Google-Smtp-Source: AB8JxZppKb6NvkiAjsytG3/yZCZXhXiZ0PusVXKlxUjVQcAcRS5tsBV1QX+Eylf0aFK2zNhblezP X-Received: by 2002:a63:7405:: with SMTP id p5-v6mr28872903pgc.289.1525820875732; Tue, 08 May 2018 16:07:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525820875; cv=none; d=google.com; s=arc-20160816; b=SQ4O5E2IMAtfRsV2g9er25fiLbZtrMov4BCEPaBmpzsGZoTbXLzhxrVNov3jmt5UKw wiP/mxy0M5dcCPJMx1PAjaogk8jC2LB/RYasqNnuFsHdKHI7pMsr/JUNrrcgZVKs6tfu 527HjDiMNRAGWec+Jz25EuUFsKbIr8guG3x4TV2nQXXGOCj9gi19wMWRCwNeXsdM2f48 eJGGp9i48UvqDfHFuCkFVK8yea39fvnLbLhXYqFIgClrP+yg0cNRDttcIirHrFl/sMxG 1wuawyx1OANi15uTyZ4qv9k6hDMD7b3HLMbz/pHy7d6wqqG6A6ULsqN1z9nmz2p0796l xIiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:msip_labels :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=LRNxxSVmxwM3qp4xL7ERVREx9E9T9De5s6iXC25R5Ao=; b=sROm/Hc3g0vFvlQNzVUg4G10JQy7LrhhdBLX1DwQV/aiMeXC/oSy0hZlSp9Fa4vo8Y I9fg0JTYyhwFvig3vdrTyPCEYfWVEEW/Pf+PbL8beoHs0hZTYWZ1RFjPyJ81RWYV0GwI euO1bV98X+PEIjoKrTkVBQUpPsMH9o30f03tiVmxgexoglRJv4MSyqzlMuigYe/PF6i0 mxtnXTCU1YFFTcLbUVnYRw4U3iKf7pZ7jPmIB4/7DidonsZRqACEffhMJAaimVZIMSfg CrJ3H45isiVpUMdNE15yVg/31NhVqdNhL0QJdGxEaj4s1WML7x45xBV3tILEIhA/G7I0 LeRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=dnuYnqxi; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e11-v6si14057334pgu.274.2018.05.08.16.07.41; Tue, 08 May 2018 16:07:55 -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; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=dnuYnqxi; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932925AbeEHXGU (ORCPT + 99 others); Tue, 8 May 2018 19:06:20 -0400 Received: from mail-hk2apc01on0125.outbound.protection.outlook.com ([104.47.124.125]:4160 "EHLO APC01-HK2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932316AbeEHXGT (ORCPT ); Tue, 8 May 2018 19:06:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=LRNxxSVmxwM3qp4xL7ERVREx9E9T9De5s6iXC25R5Ao=; b=dnuYnqxirLMo7ikVHLHGg8JpX3d3BPUkrgzRNXlpvcPjwLBtnjIiWoN7/qiE7id907Q6pCyzq8wJKtX5YWBlwrbYe5ni1rrp6cRdXJVTWt69lxeoWx+0O4YQ1q+0ZBv6e2P3DgGWWHViE5P7GDdV+bgDUhlZjO26DRmKatG5Nec= Received: from KL1P15301MB0006.APCP153.PROD.OUTLOOK.COM (10.170.167.17) by KL1P15301MB0038.APCP153.PROD.OUTLOOK.COM (10.170.167.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.776.4; Tue, 8 May 2018 23:06:05 +0000 Received: from KL1P15301MB0006.APCP153.PROD.OUTLOOK.COM ([10.170.167.17]) by KL1P15301MB0006.APCP153.PROD.OUTLOOK.COM ([10.170.167.17]) with mapi id 15.20.0755.012; Tue, 8 May 2018 23:06:03 +0000 From: Dexuan Cui To: Stephen Hemminger CC: "'gregkh@linuxfoundation.org'" , "'driverdev-devel@linuxdriverproject.org'" , KY Srinivasan , Stephen Hemminger , "Michael Kelley (EOSG)" , "'olaf@aepfle.de'" , Jork Loeser , "'jasowang@redhat.com'" , "'linux-kernel@vger.kernel.org'" , "'marcelo.cerri@canonical.com'" , "'apw@canonical.com'" , "'vkuznets@redhat.com'" Subject: RE: [PATCH] Drivers: hv: vmbus: enable VMBus protocol version 5.0 Thread-Topic: [PATCH] Drivers: hv: vmbus: enable VMBus protocol version 5.0 Thread-Index: AdPnGpZjEjN6JH3ySGSQrnm2yoYh9wAA6qmAAABexPA= Date: Tue, 8 May 2018 23:06:02 +0000 Message-ID: References: <20180508154525.37b6ddee@xeon-e3> In-Reply-To: <20180508154525.37b6ddee@xeon-e3> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=True; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Owner=decui@microsoft.com; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2018-05-08T23:05:59.9761146Z; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=General; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Application=Microsoft Azure Information Protection; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Extended_MSFT_Method=Automatic; Sensitivity=General authentication-results: spf=none (sender IP is ) smtp.mailfrom=decui@microsoft.com; x-originating-ip: [131.107.159.5] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;KL1P15301MB0038;7:bE1EE3x4Tg8y/wNMFkqLZ8t8sUH1ILh+jmfKQOdZOWBzYeoqQ3k3ReVWh7qPXhcuSIB9GsroL8CtOX+Osuz8SaZdm7WQXrcHsNjbq82LK3Gd9bUEtogIeFZ+52w7ILB616H19a3fzXSfujfSpHuydL95OKfBr8RXrP72iHWB0bkCWofAOjlIylQyyD/Y28mpf0gxh8WCmdyaG7dQMNWteyWfj/GxQyoBwjkwoHIT66kNoCiH5gRaswd4SaNVqbfg;20:8NBpkU7y3eibCwmFF/XOaVL2AS7y6QmytzhtWTMXzTsMlXYpSs1IcA4F784eSbVtT0LkYIbkMMZX3MbA1q6wlJHlzF8y5QnePu6e9nHbTVgpN/W5/YxaPsv2KzXerWBPUs0QXXpfB8QBPekX1/IUvxCF4FwYimHSdFogCC0FoK4= x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:KL1P15301MB0038; x-ms-traffictypediagnostic: KL1P15301MB0038: x-o365ent-eop-header: Message processed by - O365_ENT: Allow from ranges (Engineering ONLY) x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(788757137089); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(3231254)(944501410)(52105095)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123564045)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:KL1P15301MB0038;BCL:0;PCL:0;RULEID:;SRVR:KL1P15301MB0038; x-forefront-prvs: 0666E15D35 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(346002)(366004)(39380400002)(39860400002)(396003)(376002)(24433001)(189003)(199004)(316002)(8936002)(33656002)(2906002)(81166006)(3280700002)(305945005)(9686003)(8676002)(22452003)(74316002)(6506007)(68736007)(55016002)(10290500003)(81156014)(6916009)(186003)(99286004)(7696005)(25786009)(26005)(2900100001)(54906003)(97736004)(76176011)(77096007)(102836004)(5660300001)(4326008)(6436002)(8990500004)(486006)(53936002)(106356001)(105586002)(66066001)(86612001)(7736002)(229853002)(6246003)(6116002)(11346002)(3846002)(10090500001)(14454004)(476003)(446003)(3660700001)(86362001)(478600001);DIR:OUT;SFP:1102;SCL:1;SRVR:KL1P15301MB0038;H:KL1P15301MB0006.APCP153.PROD.OUTLOOK.COM;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: 7u/uIS0quacs9D3cfhKa8O3KsrZR9Pfv10I9KXMuDml/3SW7SuO4M0A/XvWYv5pecBoKz0jK/TkgNmB6R9pqhDKLcJ9GGcq2vmCNsopeJtFs1NhF/4QrK5C5ycayU85+CLVHQAfojpIh1O0YRnlaCY+O1gS7S2he9hPcdng9VORZLkTJUVKpfM8BYtK6a4R/B2yVZU46S9v8iV4uFn/hag== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 458c8b4c-b483-4cc2-ce7b-08d5b53845b4 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 458c8b4c-b483-4cc2-ce7b-08d5b53845b4 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 May 2018 23:06:02.9802 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1P15301MB0038 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > From: Stephen Hemminger > Sent: Tuesday, May 8, 2018 15:45 > On Tue, 8 May 2018 22:26:21 +0000 > Dexuan Cui wrote: >=20 > > @@ -63,6 +63,9 @@ static __u32 vmbus_get_next_version(__u32 > current_version) > > case (VERSION_WIN10): > > return VERSION_WIN8_1; > > > > + case (VERSION_WIN10_V5): > > + return VERSION_WIN10; > > + > > case (VERSION_WS2008): >=20 > In a future patch, we should get rid of the use of parenthesis on this sw= itch > statement. Lots of other cleanup of this code is possible as well. I agree. We can make another patch to clean up this function. Maybe we should replace the function with an array of versions. Thanks, -- Dexuan