From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Cyrus-Session-Id: sloti22d1t05-3705854-1517000690-2-12555683993393161399 X-Sieve: CMU Sieve 3.0 X-Spam-known-sender: no X-Spam-score: 0.0 X-Spam-hits: BAYES_00 -1.9, HEADER_FROM_DIFFERENT_DOMAINS 0.001, RCVD_IN_DNSWL_MED -2.3, SPF_PASS -0.001, LANGUAGES en, BAYES_USED global, SA_VERSION 3.4.0 X-Spam-source: IP='140.211.166.136', Host='smtp3.osuosl.org', Country='US', FromHeader='com', MailFrom='org', XOriginatingCountry='US' X-Spam-charsets: plain='us-ascii' X-Resolved-to: greg@kroah.com X-Delivered-to: greg@kroah.com X-Mail-from: driverdev-devel-bounces@linuxdriverproject.org ARC-Seal: i=1; a=rsa-sha256; cv=none; d=messagingengine.com; s=arctest; t=1517000689; b=C1o9PuXRDuRH84jJtbLsF/vZUpMXX2dtg52bCu72k5mB7sq gpSe+OZOySsxGy3l+6kfP4R669SC6ePu2Aqubrp9I4NKpPFZOl/oFcXZIApjQpfy eYegPLYKu8Hkaba/C9Bc6xG5mDpRkMAhC1dHjfSMpQtsOdG8qpm4lh2urUIbSIdL OcRSH2AtzQfraw58WRHr5z2rU2yHh12l7CBhcShTBCYTtwf2YkSv87oXoqJ7nMZ3 0XNC0GsUVmZEHiKQmf5DBT8piTMLn7qeIIod0qY/AnJPNTmOGbwcUstd3MJLsiFu UqaIXlWDHvAP/ilFvlGw3weQXr26RXxkL+kfADg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=from:to:subject:date:message-id :mime-version:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:reply-to:cc:content-type :content-transfer-encoding:sender; s=arctest; t=1517000689; bh=5 aMRRrITaasQAMJGu+oE1jKVZSPFZtJOBxDEbKJMX0o=; b=K/SiY8WGXL2FVeKLb YXYKcnte6TXSq//M6dBVzMXcvux3pfJHo9QWh/bXZ//M9JTT/5uhH8p0Gl5Ww7h8 gdrisJvhCmfzjvNttlRCNIAAnON102sszs2TwNlgkVSOa8P2OhOlxEB9XdV4gYVS yhYClhDTgESSzUcD40r6Mk03xAcnZvYsBNIWwpLoY94jpJOihVUc6vFMLaYc4bpA UD16lZJ/u/KYh62tHxvMbAYzy1xytlYDE5n9NVR9R4Wy6GFU1HN6njPwFmbgvJA0 jYHJjewPmMZzYt1+UpouBUCH2lsHmtKXUco4AhLl3WAgUsgDZaPH2THtLTn2KBqd 1NZ+g== ARC-Authentication-Results: i=1; mx3.messagingengine.com; arc=none (no signatures found); dkim=fail (message has been altered; 1024-bit rsa key sha256) header.d=microsoft.com header.i=@microsoft.com header.b=G4FZCuj1 x-bits=1024 x-keytype=rsa x-algorithm=sha256 x-selector=selector1; dmarc=fail (p=reject,has-list-id=yes,d=reject) header.from=microsoft.com; iprev=pass policy.iprev=140.211.166.136 (smtp3.osuosl.org); spf=pass smtp.mailfrom=driverdev-devel-bounces@linuxdriverproject.org smtp.helo=silver.osuosl.org; x-aligned-from=fail; x-ptr=fail x-ptr-helo=silver.osuosl.org x-ptr-lookup=smtp3.osuosl.org; x-return-mx=pass smtp.domain=linuxdriverproject.org smtp.result=pass smtp_is_org_domain=yes header.domain=microsoft.com header.result=pass header_is_org_domain=yes; x-tls=pass version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128 Authentication-Results: mx3.messagingengine.com; arc=none (no signatures found); dkim=fail (message has been altered; 1024-bit rsa key sha256) header.d=microsoft.com header.i=@microsoft.com header.b=G4FZCuj1 x-bits=1024 x-keytype=rsa x-algorithm=sha256 x-selector=selector1; dmarc=fail (p=reject,has-list-id=yes,d=reject) header.from=microsoft.com; iprev=pass policy.iprev=140.211.166.136 (smtp3.osuosl.org); spf=pass smtp.mailfrom=driverdev-devel-bounces@linuxdriverproject.org smtp.helo=silver.osuosl.org; x-aligned-from=fail; x-ptr=fail x-ptr-helo=silver.osuosl.org x-ptr-lookup=smtp3.osuosl.org; x-return-mx=pass smtp.domain=linuxdriverproject.org smtp.result=pass smtp_is_org_domain=yes header.domain=microsoft.com header.result=pass header_is_org_domain=yes; x-tls=pass version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128 X-Remote-Delivered-To: driverdev-devel@osuosl.org From: Haiyang Zhang To: "gregkh@linuxfoundation.org" , "devel@linuxdriverproject.org" Subject: [PATCH] hv_vmbus: Correct the stale comments regarding cpu affinity Thread-Topic: [PATCH] hv_vmbus: Correct the stale comments regarding cpu affinity Thread-Index: AQHTluk8OTexblskZE+BvjMyD1FgZw== Date: Fri, 26 Jan 2018 21:04:21 +0000 Message-ID: <20180126210408.5729-1-haiyangz@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; CY4PR2101MB0804; 7:/870X5cZ5fi6maED/OLKIOTCCKrd7wOjn9CZwJanY4ZtUhCBtO5UbKgmuavTJPWjaHvTkKpOwmkJmDxj6um9cNZj4ZUnISnCDFoT1Pfwcdahnmf+Sjc4HYFwX9FuTZNcnYzJ2/YBHmlrkgdKAE4LaOtfG7z2FnhVqEJ0vDaV0wwyBgQfGmWwEH0IEgID00E/a2EhGML+D8YP54ovtS8diNXQazyPjP+O6W2qrVSpUfu6jzvwPG1WL1XHZEqQhXmV x-ms-exchange-antispam-srfa-diagnostics: SSOS;SSOR; x-forefront-antispam-report: SFV:SKI; SCL:-1; SFV:NSPM; SFS:(10019020)(366004)(39380400002)(376002)(396003)(346002)(39860400002)(199004)(189003)(3846002)(8676002)(8936002)(36756003)(86362001)(66066001)(102836004)(43066004)(478600001)(2501003)(5250100002)(10290500003)(53936002)(1076002)(5660300001)(6116002)(68736007)(6486002)(6346003)(2906002)(26005)(81156014)(6436002)(81166006)(6512007)(7736002)(4326008)(106356001)(305945005)(22452003)(10090500001)(316002)(2900100001)(25786009)(97736004)(105586002)(6506007)(3280700002)(3660700001)(54906003)(186003)(14454004)(86612001)(110136005)(99286004)(3450700001)(22906009); DIR:OUT; SFP:1102; SCL:1; SRVR:CY4PR2101MB0804; H:CY4PR2101MB0867.namprd21.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: adad3430-2ba3-48ed-aee8-08d565005f4b x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(3008032)(2017052603307)(7193020); SRVR:CY4PR2101MB0804; x-ms-traffictypediagnostic: CY4PR2101MB0804: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(61425038)(6040501)(2401047)(5005006)(8121501046)(93006095)(93001095)(3002001)(3231077)(2400081)(944501161)(10201501046)(6055026)(61426038)(61427038)(6041288)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123564045)(6072148)(201708071742011); SRVR:CY4PR2101MB0804; BCL:0; PCL:0; RULEID:; SRVR:CY4PR2101MB0804; x-forefront-prvs: 05641FD966 authentication-results: spf=none (sender IP is ) smtp.mailfrom=haiyangz@microsoft.com; x-microsoft-antispam-message-info: Jw8R9r4ecxJjvgDah0zEh3SCLYM+l4J18HzOd8zdGVfU21dE8Hf0guDrUjvb1BKsM4I+OwvWbg2zIHXd765CEQ== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: adad3430-2ba3-48ed-aee8-08d565005f4b X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Jan 2018 21:04:21.4483 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR2101MB0804 X-BeenThere: driverdev-devel@linuxdriverproject.org X-Mailman-Version: 2.1.24 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Haiyang Zhang Cc: Haiyang Zhang , Stephen Hemminger , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: driverdev-devel-bounces@linuxdriverproject.org Sender: "devel" X-getmail-retrieved-from-mailbox: INBOX X-Mailing-List: linux-kernel@vger.kernel.org List-ID: The comments doesn't match what the current code does, also have a typo. This patch corrects them. Signed-off-by: Haiyang Zhang --- drivers/hv/channel_mgmt.c | 6 ++---- include/linux/hyperv.h | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/hv/channel_mgmt.c b/drivers/hv/channel_mgmt.c index c21020b69114..c6d9d19bc04e 100644 --- a/drivers/hv/channel_mgmt.c +++ b/drivers/hv/channel_mgmt.c @@ -596,10 +596,8 @@ static int next_numa_node_id; /* * Starting with Win8, we can statically distribute the incoming * channel interrupt load by binding a channel to VCPU. - * We do this in a hierarchical fashion: - * First distribute the primary channels across available NUMA nodes - * and then distribute the subchannels amongst the CPUs in the NUMA - * node assigned to the primary channel. + * We distribute the interrupt loads to one or more NUMA nodes based on + * the channel's affinity_policy. * * For pre-win8 hosts or non-performance critical channels we assign the * first CPU in the first NUMA node. diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h index 93bd6fcd6e62..2048f3c3b68a 100644 --- a/include/linux/hyperv.h +++ b/include/linux/hyperv.h @@ -844,7 +844,7 @@ struct vmbus_channel { /* * NUMA distribution policy: - * We support teo policies: + * We support two policies: * 1) Balanced: Here all performance critical channels are * distributed evenly amongst all the NUMA nodes. * This policy will be the default policy. -- 2.15.1 _______________________________________________ devel mailing list devel@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel