Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2007658imm; Thu, 24 May 2018 04:25:40 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp0nWnTUZyNDekomW9lAB5HaopoBG2+R3h+yDlU0yHntVJ/ILE4hQ0Pn+OPdrl4rB6SAcic X-Received: by 2002:a62:93c8:: with SMTP id r69-v6mr6845180pfk.59.1527161140682; Thu, 24 May 2018 04:25:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527161140; cv=none; d=google.com; s=arc-20160816; b=d0JTmrMDXgd001xf4e7GLUWHIgloNOAVmWXDoAqG8dsxsyFgbQ4AmZQzBXZ7f0yoMU cN4PA3QEuG2+f6CNvOgQrjUGxZ/z3lWp2TZSs3e9jBIoNFVkRwW/4JMvqDEUcxYJU+ZU fCM7XsWQkvwKZlXaNXw3WM8JTClhyD+gmOWKZ5/NuUtTPKe8A6Qwf9fWhS+Nkvk3vxa7 nEkQnlHg59QkFDKTZ5kxTc6rLVFWnsYmMBurmm9zapf/WCLYnPLQKt7MQ8GLu9Hcc14N WFIIyxqNLtF7nF9Vuzzj+MVDBlicUi4AecoHptsD/auZMGlfNVXzSMClT7+JJIxliaJJ AiUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=c9MVv+7M1zrBdBxws6g0UC0JjKAp/D3UH/c8JztciQo=; b=VzCRc3PXOmGZ1yBjAe7qrSKGtDShAcURIooAXKHXVyTxiYr9X/TmcwBGfNdqQDvaOg ZC3J/P2/P33J4qR7Y/nTH1TPo3sU+dfyd2cS770tg7pPO72s0dUONImmaV5JvznebflC Lph6gANjcZ7LZY/qxq5Owx5fNBldBuTpI3KJeq25HdBtmvzV5v4hLapfUsrp5K3mxh/5 cJwd/AKI70rV/quaI+Ot0TupzxFabpp/vP2gFinNWIvqfkDjGkVC9kr36Og8VqGuUICj NCKMK7jkkmthLfCluex4WBC1qTMcdEpVFCY2CtQLcub5XQp0lTMsZVtLFEyDWPnBzCUn DsVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=n3wg4Pt2; 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 n3-v6si3233355pgr.106.2018.05.24.04.25.25; Thu, 24 May 2018 04:25:40 -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=@kernel.org header.s=default header.b=n3wg4Pt2; 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 S968811AbeEXLY3 (ORCPT + 99 others); Thu, 24 May 2018 07:24:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:48242 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967780AbeEXJvw (ORCPT ); Thu, 24 May 2018 05:51:52 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4275420847; Thu, 24 May 2018 09:51:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527155511; bh=wXKgH0XvyM9C5LywCkZ4Gsegsv7K/J5k19txz0BnDtc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=n3wg4Pt2mcr3jQmxHtrurMgX7e0SP8L46o4eBXCT/PXJp9DtX5LiTPJjm3H5Q7qh4 S7MAUSd0LtlOjpfzM2mDJ5waJRJsJVmRSJebicrpQIzMoDiGt+iXxTBizrqdnuL6YH SjdGqe3B8IqfI8hOJt/E8r+tbJgE5Aqo8UiJvLsA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Haiyang Zhang , "David S. Miller" Subject: [PATCH 4.14 016/165] hv_netvsc: Set tx_table to equal weight after subchannels open Date: Thu, 24 May 2018 11:37:02 +0200 Message-Id: <20180524093622.641047740@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524093621.979359379@linuxfoundation.org> References: <20180524093621.979359379@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Haiyang Zhang [ Commit a6fb6aa3cfa9047b62653dbcfc9bcde6e2272b41 upstream. ] In some cases, like internal vSwitch, the host doesn't provide send indirection table updates. This patch sets the table to be equal weight after subchannels are all open. Otherwise, all workload will be on one TX channel. As tested, this patch has largely increased the throughput over internal vSwitch. Signed-off-by: Haiyang Zhang Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/hyperv/rndis_filter.c | 3 +++ 1 file changed, 3 insertions(+) --- a/drivers/net/hyperv/rndis_filter.c +++ b/drivers/net/hyperv/rndis_filter.c @@ -1114,6 +1114,9 @@ void rndis_set_subchannel(struct work_st netif_set_real_num_tx_queues(ndev, nvdev->num_chn); netif_set_real_num_rx_queues(ndev, nvdev->num_chn); + for (i = 0; i < VRSS_SEND_TAB_SIZE; i++) + ndev_ctx->tx_table[i] = i % nvdev->num_chn; + rtnl_unlock(); return;