Received: by 10.223.148.5 with SMTP id 5csp6989377wrq; Wed, 17 Jan 2018 22:47:45 -0800 (PST) X-Google-Smtp-Source: ACJfBovkaxzdfgrFy12zD7H+wD6TUsKbpQ/xLOHCUcO9cgGPsplGqS3872+nWjH/JmvGp07jof+D X-Received: by 10.99.115.4 with SMTP id o4mr19372897pgc.206.1516258065550; Wed, 17 Jan 2018 22:47:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516258065; cv=none; d=google.com; s=arc-20160816; b=cmnZTz6b2Yx/+eockX8Na9SuVJNjfLOIvMUzlq+pxnbF9pGwUm+tWvx7pTc7bVghm5 bj8PkEcjTFmTHzKIshg+KcsvkN6mOXZXVbxVVKs4zuM+T049O/UipM4T08k0xmEJDN9P nb04y+0OPvaeTrbiPjQ+6+BF4VwdyGjv87XFovmk/MpReWkkXz3jG2VSSBIm1McOaRvQ UnCPmM09DTHhnmbrV8jiHSlkssBafkJyAJ8Zzjmi/MSndxJG3uqd1rlip+Ot6mr2tp69 EI9K3+mdtOotYKzWmKO4Sl5ZjYyx6M7SxAcmKP0GewYmcAuHsBR8Z5zqGB4yZCHanQTD TbbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=YeA1sUU5yVN+lVW6H5pVfIf+WtZrJ9B/hTG4DKzNt2g=; b=M2Pg15dBLQWgnTiBV3ufsrdzcd6KC2PN/owj4jgzUzMCGUpvinSYkt4gOeX91Ab5Eq uYUPAKoEmzdw/Vj6xmIPxHSMay+Uzi+LuIyl23LaSk+ngjzTtM4n6dilwOtaopoInVk4 1yVRZM++2mLiHFbSVUZtajqra/b292qZkdwvrEzbwIRvGCNK9DJIa3hNacKqaNn8p5kY rWp7p6w7iFfbQ48/IRlgkvYJuMMouRa9edTVw6jnZJEDPUwPpNkwPedcHwkmPYlcE5Ga N/6rMED2TBpOF99hBR8hAnwSYLa/NL0dSz/HJvkaoX+ZrdQ4v6brD83EiLO9CZ0Lctaf UO5Q== 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 i72si2713492pfe.310.2018.01.17.22.47.31; Wed, 17 Jan 2018 22:47:45 -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 S1754859AbeARGqV (ORCPT + 99 others); Thu, 18 Jan 2018 01:46:21 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:4249 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753682AbeARGpF (ORCPT ); Thu, 18 Jan 2018 01:45:05 -0500 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 2750CDD205405; Thu, 18 Jan 2018 14:44:49 +0800 (CST) Received: from linux-ioko.site (10.71.200.31) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.361.1; Thu, 18 Jan 2018 14:44:43 +0800 From: Peng Li To: CC: , , , , Subject: [PATCH net-next 0/5] add some features to hns3 driver Date: Thu, 18 Jan 2018 15:13:47 +0800 Message-ID: <1516259632-85088-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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset adds some features to hns3 driver, include the support for ethtool command -d, -p and support for manager table. [Patch 1/5] adds support for ethtool command -d, its ops is get_regs. driver will send command to command queue, and get regs number and regs value from command queue. [Patch 2/5] adds manager table initialization for hardware. [Patch 3/5 - 4/5] add support for ethtool command -p. Phy will control leds for copper ports. For fiber ports, driver sends command to command queue, and IMP will write SGPIO regs to control leds. [Patch 4/5] adds support for net status led for fiber ports. Net status include port speed, total rx/tx packets and link status. Driver send the status to command queue, and IMP will write SGPIO to control leds. Fuyun Liang (2): net: hns3: add support for get_regs net: hns3: add manager table initialization for hardware Jian Shen (3): net: hns3: add ethtool -p support for phy device net: hns3: add ethtool -p support for fiber port net: hns3: add net status led support for fiber port drivers/net/ethernet/hisilicon/hns3/hnae3.h | 5 +- drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c | 35 ++ .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 47 ++ .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 533 +++++++++++++++++++++ .../ethernet/hisilicon/hns3/hns3pf/hclge_main.h | 14 + 5 files changed, 633 insertions(+), 1 deletion(-) -- 2.9.3