Received: by 10.223.185.116 with SMTP id b49csp6178056wrg; Thu, 8 Mar 2018 03:12:04 -0800 (PST) X-Google-Smtp-Source: AG47ELvY5QSRodTtK8LkEtDAtVPPHgjNHYKs7AAq9aAqKc8eEm6PoMbfcmAz5S8P6p14G2vW5e7A X-Received: by 10.101.65.131 with SMTP id a3mr20482964pgq.270.1520507523944; Thu, 08 Mar 2018 03:12:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520507523; cv=none; d=google.com; s=arc-20160816; b=zKrCpFFsmAtqIIWFn5O1mDobGv2axIhPMd97zu1Z7CXwHxxPnWvO0nJDf2hnaVQ7b8 hBWPk79PGiFWXgm5PEKUIOgvF7+DiCit0tRhxPu4xLoXmgVz855XsZt0Pmm0kIM3ov0v qm9XlVMQD/CV7RvK24iOYlaqqDaZwgtnbFzpt0qrZUKWh/hSp1jDEPRHgjionQnL+FN0 O4g6MTHxBNdtHMXNkP+UiJ4FoZHyGi2p8bQoB6MMiyxr9G90g+uWDtGldS2UZU+/YGgB Ast5aPooDbHhOdWejGiR6ksVP0uJerIFLBF/Y7edh6ubW5I3AJEPZ4F+a5xojQrSocNi e60w== 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=K0estkRRJpCtzWs0Flrht+vO8LF7LiqYrDp2xyZzGOI=; b=PMw9YsUtWxaWqT/BZ4W7s7ngVIWIX0GMU818lJp5pwCbL5yIDEGSjmZHMv8tznVU7q 14REukMOQ2dgrYh4bgYZXTbT4XkipUNxHVFkUqaTrW/BeGtx84zmFbg5dbPOeWDTw7LX lmoJIETwL/2Tc3j38M5fXTR5lw7L4acYKa5h0LRyrJedReGXLQiG0O4eG0pnvY1lTxmx X+h3y2CixxoeWRdPUJfvH++iVXhTdZFrTn91QsJ8jxKZMG2FFcAMMFYiM9OekfkfqAYr IYq4aTJCeGDGdQlroC5Lhv6EBYHOM+jkRGlsFL08swspjONRyKa5tsXt/O3W0Mv8Ky8G qh/A== 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 r62si15496831pfe.400.2018.03.08.03.11.49; Thu, 08 Mar 2018 03:12:03 -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 S1755870AbeCHLK1 (ORCPT + 99 others); Thu, 8 Mar 2018 06:10:27 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:5767 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755785AbeCHLKS (ORCPT ); Thu, 8 Mar 2018 06:10:18 -0500 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 3CC6C2242C692; Thu, 8 Mar 2018 19:10:03 +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:55 +0800 From: Peng Li To: CC: , , , , Subject: [Patch net-next 6/6] net: hns3: add support for VF driver inner interface hclgevf_ops.get_tqps_and_rss_info Date: Thu, 8 Mar 2018 19:41:55 +0800 Message-ID: <1520509315-40895-7-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 This patch adds support for VF driver inner interface hclgevf_ops.get_tqps_and_rss_info. This interface will be used in the initialization process. Signed-off-by: Peng Li --- drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c index 0d89965..c9a916a 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c @@ -1447,6 +1447,15 @@ static void hclgevf_get_channels(struct hnae3_handle *handle, ch->combined_count = hdev->num_tqps; } +static void hclgevf_get_tqps_and_rss_info(struct hnae3_handle *handle, + u16 *free_tqps, u16 *max_rss_size) +{ + struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); + + *free_tqps = 0; + *max_rss_size = hdev->rss_size_max; +} + static const struct hnae3_ae_ops hclgevf_ops = { .init_ae_dev = hclgevf_init_ae_dev, .uninit_ae_dev = hclgevf_uninit_ae_dev, @@ -1477,6 +1486,7 @@ static const struct hnae3_ae_ops hclgevf_ops = { .get_fw_version = hclgevf_get_fw_version, .set_vlan_filter = hclgevf_set_vlan_filter, .get_channels = hclgevf_get_channels, + .get_tqps_and_rss_info = hclgevf_get_tqps_and_rss_info, }; static struct hnae3_ae_algo ae_algovf = { -- 2.9.3