Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754605AbeALHyT (ORCPT + 1 other); Fri, 12 Jan 2018 02:54:19 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:4175 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754235AbeALHyQ (ORCPT ); Fri, 12 Jan 2018 02:54:16 -0500 From: Peng Li To: CC: , , , , Subject: [PATCH V2 net-next 00/11] add some new features and fix some bugs Date: Fri, 12 Jan 2018 16:23:06 +0800 Message-ID: <1515745397-93865-1-git-send-email-lipeng321@huawei.com> X-Mailer: git-send-email 1.9.1 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 List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: This patchset adds 3 ethtool features: get_channels, get_coalesce and get_coalesce, and fix some bugs. [patch 1/11] adds ethtool_ops.get_channels (ethtool -l) support for VF. [patch 2/11] removes TSO config command from VF driver, as only main PF can config TSO MSS length according to hardware. [patch 3/11 - 4/11] add ethtool_ops {get|set}_coalesce (ethtool -c/-C) support to PF. [patch 5/11 - 9/11] fix some bugs related to {get|set}_coalesce. [patch 10/11 - 11/11] fix the features handling in hns3_nic_set_features(). Local variable "changed" was defined to indicates features changed, but was used only for feature NETIF_F_HW_VLAN_CTAG_RX. Add checking to improve the reliability. --- Change log: V1 -> V2: 1, Rewrite the cover letter requested by David Miller. --- Fuyun Liang (7): net: hns3: add ethtool_ops.get_coalesce support to PF net: hns3: add ethtool_ops.set_coalesce support to PF net: hns3: refactor interrupt coalescing init function net: hns3: refactor GL update function net: hns3: remove unused GL setup function net: hns3: change the unit of GL value macro net: hns3: add int_gl_idx setup for TX and RX queues Jian Shen (2): net: hns3: add feature check when feature changed net: hns3: check for NULL function pointer in hns3_nic_set_features Peng Li (2): net: hns3: add ethtool_ops.get_channels support for VF net: hns3: remove TSO config command from VF driver drivers/net/ethernet/hisilicon/hns3/hnae3.h | 7 + drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 148 ++++++++++------- drivers/net/ethernet/hisilicon/hns3/hns3_enet.h | 26 ++- drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c | 179 +++++++++++++++++++++ .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 5 + .../ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.h | 8 - .../ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 50 +++--- 7 files changed, 336 insertions(+), 87 deletions(-) -- 1.9.1