Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2008695imm; Thu, 24 May 2018 04:26:53 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp3MnFKuZMOL8YvnENqH1xHihP9mJmEY/fYkUOE7vwph2pyaQSdPlOvWlNUo9L+96jBLHSJ X-Received: by 2002:a62:be10:: with SMTP id l16-v6mr6744923pff.180.1527161213603; Thu, 24 May 2018 04:26:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527161213; cv=none; d=google.com; s=arc-20160816; b=XKoMd1+rTNGEn1G8b9Zz2aUaie7eTB0vzslhq9acl4wcuPeY1YIrzViOtfjWH1eXWN paQcmST3CbMescNDGrf3C5qnrllJ/5u1XHrle/vvJ1FeoAkhR1MWWCeF9j5Oe+np3qVy dgtStDCAV7Rx6U8YKW9lwdqo3ZVoPdce2wYA3AgHBQ9eTBO3/tNVZtItHdfr2FhHVEDB ChMziafUnc9I5AwLAJgVskaIttBmMJKmifvqHOA7TFoO1OtpwznXkG6ANdXOI4YaGOvi kcq7UOWNVwIE+0AMt2LQWdaMc2OjosLoXy4DjkT3Yy/B72SEiF5X4ov/tHyXQp+IrP9x WI1Q== 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=HUrpVwFU8hcQq8LVi2tFU2SmTE3qiOcpXuabwKznSMk=; b=L5mq1SPVNS7hzXlzUkp92Lj5u1XcmVmRjXGz55a0UdyXR7MEw9K53JyT+EDW6SeWUS Nv5dx/by9iHY3oAsANUurdPYR8aStCLD/j1/qtynNLiIGd5Y81iVm7h1tg/V36yBjTXx 2aYkeSp5ll8ntNRlZ8zOkfA02otwfD2ya5NFM0CL2XAK7N9fxRy4bC6At++wFdm2DexN aXgztN4akWCBapWLIX3AWbXjXBXtYbh4WEWRILBvHSYQAYltUh2ZhGTQBc3YfMUVkmzL FsvEdF+ycAKpk7rYu//aCC9h51+yTQcaj0W4sxRIJtRqKZk1Y8dsD82PXBYsmSwvEx/F cvvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Fm+T9/Zj; 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 n1-v6si20725654pld.188.2018.05.24.04.26.38; Thu, 24 May 2018 04:26:53 -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=Fm+T9/Zj; 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 S967913AbeEXLZt (ORCPT + 99 others); Thu, 24 May 2018 07:25:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:47716 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967749AbeEXJvl (ORCPT ); Thu, 24 May 2018 05:51:41 -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 4AF9C20847; Thu, 24 May 2018 09:51:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527155500; bh=cIdtEIeVNSzXNanRbWoxnQldT1m3N+UiiXDh4iWgbv8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Fm+T9/ZjuDX92Kq37wQvQ+xjF19WRjmT2B112HqRd7p/xsMimYCFVWpJaezyoGPpS qMkqOJRDnZYQMyrMxM6mvmHG/3B5DgCIv/dR/SlFdPBtF1aGk99Z5aekzSsTyvU7mt zCY8C2vY4EA/WMrUTS9uBPOBmMslG2BZDrqTSZd0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Haiyang Zhang , Stephen Hemminger , "David S. Miller" Subject: [PATCH 4.14 012/165] hv_netvsc: Fix the real number of queues of non-vRSS cases Date: Thu, 24 May 2018 11:36:58 +0200 Message-Id: <20180524093622.471331648@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 6450f8f269a9271985e4a8c13920b7e4cf21c0f3 upstream. ] For older hosts without multi-channel (vRSS) support, and some error cases, we still need to set the real number of queues to one. This patch adds this missing setting. Fixes: 8195b1396ec8 ("hv_netvsc: fix deadlock on hotplug") Signed-off-by: Haiyang Zhang Reviewed-by: Stephen Hemminger Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/hyperv/netvsc_drv.c | 6 ++++++ 1 file changed, 6 insertions(+) --- a/drivers/net/hyperv/netvsc_drv.c +++ b/drivers/net/hyperv/netvsc_drv.c @@ -1932,6 +1932,12 @@ static int netvsc_probe(struct hv_device /* We always need headroom for rndis header */ net->needed_headroom = RNDIS_AND_PPI_SIZE; + /* Initialize the number of queues to be 1, we may change it if more + * channels are offered later. + */ + netif_set_real_num_tx_queues(net, 1); + netif_set_real_num_rx_queues(net, 1); + /* Notify the netvsc driver of the new device */ memset(&device_info, 0, sizeof(device_info)); device_info.ring_size = ring_size;