Received: by 10.223.185.116 with SMTP id b49csp6179859wrg; Thu, 8 Mar 2018 03:13:54 -0800 (PST) X-Google-Smtp-Source: AG47ELuYBeR4outrUSlSti/lt+TAPz7viJyTkQ5OaDBch0pz9mIQI5DeNyowM1AL42l+IEI7c6mk X-Received: by 10.98.35.195 with SMTP id q64mr25677804pfj.161.1520507634412; Thu, 08 Mar 2018 03:13:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520507634; cv=none; d=google.com; s=arc-20160816; b=rARLC7g/+OTPFQ2kazuaiIWTA7P8ear0XRikr2Dev0eLW8hCUuR8ST+hNgpUjI5lWR 547ZRSLTYLjC8AsxjKXP5B6lnt0V2VzL57WoHJE31xa8B6T4jUt9cbMG/PmJMCD0DyLX 9hZKrLMSaw+NMztNk+6tcH1YyEM6ebc+5pDHmo8G2XGlD2plSqnR4yxn3ADt68NAaWKn gHQDd/tJEnx8x5jHfsK8rHbShcaTb+58avC6qR+lFbQUmpTY6iXw7jfuWMCu2mE2hYKc ur6+LE/NMvepSl5fipP4fULy2jgLNw521Obq/lV42rrX4boUMWxVSJhuz7nJJC/Aokz+ 6CYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=a1e1ZARZRQREWeRncySV2giP+zCIzYNSRK/+g5psPg8=; b=GKp38VhSx9a3OTqqCrOYVwik2DmyoomCyuBI9/B6/G+Nv4N6LRAPlzwZ2bDWvXNMVt qcL7ZePNeHPQJx+LmOSO+IPPe0JJfVuGbEBg4ZF5AydLxN5eiH/6n0sVKTKKceScne0a Cgkc29ctDqDYF239JJUrwlF7h3Goe5Q7G02nDGYPxxouJ7KXO90K9jXFiKt/QgQKSYFP 45IQox64Fhj9m4numf3yMifaqe06vm0i6cTIdFrY6SYWtVQ4r5TLFfJLd7H6DAm7ACD2 VGU3cjz0jqktsib7cQCyp6ETzt3OJEoUPm4yyihn285hcksxL/Oaa0aM2kWdJSiFg2u1 ryRQ== 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 u16si15610206pfl.299.2018.03.08.03.13.39; Thu, 08 Mar 2018 03:13:54 -0800 (PST) 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 S1755766AbeCHLKP (ORCPT + 99 others); Thu, 8 Mar 2018 06:10:15 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:5764 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754566AbeCHLKN (ORCPT ); Thu, 8 Mar 2018 06:10:13 -0500 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 9BBBC7AD4FEB8; Thu, 8 Mar 2018 19:09:57 +0800 (CST) Received: from linux-ioko.site (10.71.200.31) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.361.1; Thu, 8 Mar 2018 19:09:54 +0800 From: Peng Li To: CC: , , , , Subject: [Patch net-next 1/6] net: hns3: VF should get the real rss_size instead of rss_size_max Date: Thu, 8 Mar 2018 19:41:50 +0800 Message-ID: <1520509315-40895-2-git-send-email-lipeng321@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1520509315-40895-1-git-send-email-lipeng321@huawei.com> References: <1520509315-40895-1-git-send-email-lipeng321@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.71.200.31] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VF driver should get the real rss_size which is assigned by host PF, not rss_size_max. Signed-off-by: Peng Li --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c index f38fc5c..31383a6 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c @@ -291,7 +291,7 @@ static int hclge_get_vf_queue_info(struct hclge_vport *vport, /* get the queue related info */ memcpy(&resp_data[0], &vport->alloc_tqps, sizeof(u16)); - memcpy(&resp_data[2], &hdev->rss_size_max, sizeof(u16)); + memcpy(&resp_data[2], &vport->nic.kinfo.rss_size, sizeof(u16)); memcpy(&resp_data[4], &hdev->num_desc, sizeof(u16)); memcpy(&resp_data[6], &hdev->rx_buf_len, sizeof(u16)); -- 2.9.3