Received: by 10.223.185.116 with SMTP id b49csp5790986wrg; Wed, 7 Mar 2018 18:45:43 -0800 (PST) X-Google-Smtp-Source: AG47ELvxxO3IVS1K6gLLRQ9IF3d2rxDN9nMhb6Ge0+eCm6K2Nl+UPILJznt8I5CPbDEjMDnjNUor X-Received: by 2002:a17:902:b083:: with SMTP id p3-v6mr20386203plr.314.1520477143758; Wed, 07 Mar 2018 18:45:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520477143; cv=none; d=google.com; s=arc-20160816; b=Q+6BA2qV3AJ2mxL/x8L0Jc+KeD547VJV6O6s9LcSW5EFuafLzaevIkBYKZPNxEa9GR /fR9CaTdWUc3ijBkUs3c+RlSgzJj2g02HrhXqWdz0xkWQ9KyR4NS2CMWMjiegM4q34Bk 9gszYsoyJF/oU2n3qna348lEYtIFW31Mm5ExdV3B+VPLIMTiThN1tSgO1SXp5XXncs0y vVz13+MS7rH+K2VAEfBUJPaG0yg3nyLIVpmTZS2Uq+IItHUBsJ5mSC+gb/bJ0SdN+VoI gM4/KUVhYhmR42cogmQY12quggDjqEaP9ecD//yEqaN/5yAt8Fk49o0dQnuz6b2FiB7t myUw== 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=QZl/p92hJVtQObRVsKz2QdYRSqe1JrIbtxRWt2rJlT0MRX8NlKWrkoatiE++d7Am8K DxmkIUtA/LY+d2w7xONrBugH7e2V/8zW1B+0OtU6PR45/0Uxu/16dPd8CXPVnl9BH3B8 3NpUPiua6qip35i1SE2plaB7xUBCkqasgF2fVEsu2UXuM1VupdgjW+qv/UJlZEov2VI9 88frWwA5wyy5n9SSE1e42pLbr+DPwIs+ZHuj/V9DqVNoponR1YRZvoxaKt4Dq7waPRaa SobsPdrFyDbYc5XwQtex+6Hw8moN89C04HVBJppiu4RDshSN9pJm6PAjOP/qsq+B+VTN zwjQ== 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 z4si5239585pfl.95.2018.03.07.18.45.29; Wed, 07 Mar 2018 18:45:43 -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 S964990AbeCHCoE (ORCPT + 99 others); Wed, 7 Mar 2018 21:44:04 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:5746 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934577AbeCHCe5 (ORCPT ); Wed, 7 Mar 2018 21:34:57 -0500 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 9AA5D24D4A5C8; Thu, 8 Mar 2018 10:34:43 +0800 (CST) Received: from linux-ioko.site (10.71.200.31) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.361.1; Thu, 8 Mar 2018 10:34:35 +0800 From: Peng Li To: CC: , , , , Subject: [PATCH net-next 01/23] {topost} net: hns3: VF should get the real rss_size instead of rss_size_max Date: Thu, 8 Mar 2018 11:06:26 +0800 Message-ID: <1520478408-116992-2-git-send-email-lipeng321@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1520478408-116992-1-git-send-email-lipeng321@huawei.com> References: <1520478408-116992-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