Received: by 10.223.176.46 with SMTP id f43csp542323wra; Fri, 26 Jan 2018 03:04:03 -0800 (PST) X-Google-Smtp-Source: AH8x224gaLzewScjwACJaLpXKlJbNXuAGxhDHSNfrjQsEkYMxzxl5i1XRFFFXmxHd74i2aJWAXB/ X-Received: by 2002:a17:902:7146:: with SMTP id u6-v6mr14235102plm.49.1516964643659; Fri, 26 Jan 2018 03:04:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516964643; cv=none; d=google.com; s=arc-20160816; b=fx1EyVO19MkiTRrzBmLpgQWdYa+6gjIESpizhy0vGboV1KWWo0d0YPsVGjzy21mjUM SSLkkN4Xl/qnZgiiOhROVoTP7t+yf5pBGN0hXri38vbyou45Aqry1ZnAvBcDr5n2R41X +XRyiij4dxKf+k+3gAku6QlSW0prH/BIeuLCVXtmjmicxKtJ+1ujrdfRZcEDZT79hKKY wJnQzqbnO6/lcftKmqkjnkxn0HTTvkA6WxFhn+xI8kOs4ksRov+xX8q+TwLFwxDnCt9A hJpqif6kf2TjH10TynMOt4umYiBNzhStB+DWyhRfET75z36Q/IH+iPAo8AvbTEdg78c6 YPnQ== 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=h0X3kSYRi80pOzd/cy8LeECchPrbLuvUpwS+bRE4orM=; b=O/rI12iMgJGndkCuj4IiDe7GYRjmV6c5KxxsNqR/TTXg2Cs/ZlQBbju3oPy84WAa+r OEIddZQBxPAkJKylw4gLBhiWv5L8fNpr1ypysGtyfI4Tjxsq3V0vVxrn3PnUOjpK9GHY tibGkeZtF84T9K33kJLbQDYkYJJjH6YdyuMH1eayQXH2NJyM/UqmXYYToD02mRRscpZs uNKExIoGp+3o63BvnIdpK2aVad+PBYHQJ85Grw7BuXUcU9T9cqtScZNSgwWGGhExtVP+ el8pbJNqfqcVoWgl0Nhj6bQHoAOSCU5ET3gGa8J6ZhuWJDIW5gykNiEIhiwEsRMwl6OP +BIQ== 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 m9si6121581pfh.319.2018.01.26.03.03.49; Fri, 26 Jan 2018 03:04: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 S1753278AbeAZLCw (ORCPT + 99 others); Fri, 26 Jan 2018 06:02:52 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:4707 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753235AbeAZLCu (ORCPT ); Fri, 26 Jan 2018 06:02:50 -0500 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id A9AF3FB2C9532; Fri, 26 Jan 2018 19:02:35 +0800 (CST) Received: from linux-ioko.site (10.71.200.31) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.361.1; Fri, 26 Jan 2018 19:02:27 +0800 From: Peng Li To: CC: , , , , Subject: [PATCH net-next 1/2] net: hns3: add get/set_coalesce support to VF Date: Fri, 26 Jan 2018 19:31:24 +0800 Message-ID: <1516966285-48898-2-git-send-email-lipeng321@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1516966285-48898-1-git-send-email-lipeng321@huawei.com> References: <1516966285-48898-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 From: Fuyun Liang This patch adds ethtool_ops.get/set_coalesce support to VF. Since PF and VF share the same get/set_coalesce interface, we only need to set hns3_get/set_coalesce to the ethtool_ops when supporting get/set_coalesce for VF. Signed-off-by: Fuyun Liang Signed-off-by: Peng Li --- drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c b/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c index 7410205..b034c7f 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c @@ -1109,6 +1109,8 @@ static int hns3_set_phys_id(struct net_device *netdev, .set_rxfh = hns3_set_rss, .get_link_ksettings = hns3_get_link_ksettings, .get_channels = hns3_get_channels, + .get_coalesce = hns3_get_coalesce, + .set_coalesce = hns3_set_coalesce, }; static const struct ethtool_ops hns3_ethtool_ops = { -- 1.9.1