Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 90D78C61DA4 for ; Mon, 6 Feb 2023 13:50:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230225AbjBFNur (ORCPT ); Mon, 6 Feb 2023 08:50:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230106AbjBFNub (ORCPT ); Mon, 6 Feb 2023 08:50:31 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 242D5C16F for ; Mon, 6 Feb 2023 05:50:12 -0800 (PST) Received: from dggpemm500005.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4P9SJF2CZSznW1M; Mon, 6 Feb 2023 21:47:57 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by dggpemm500005.china.huawei.com (7.185.36.74) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Mon, 6 Feb 2023 21:50:06 +0800 From: Hao Lan To: , CC: , , , , , , Subject: [PATCH net-next 0/2] net: hns3: support wake on lan for hns3 Date: Mon, 6 Feb 2023 21:49:31 +0800 Message-ID: <20230206134933.32700-1-lanhao@huawei.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.69.192.56] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpemm500005.china.huawei.com (7.185.36.74) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org HNS3 (HiSilicon Network System 3) supports Wake-on-LAN, magic mode and magic security mode on each pf. This patch supports the ethtool LAN wake-up configuration and query interfaces and debugfs query interfaces. It does not support the suspend resume interface because there is no corresponding application scenario. Hao Lan (2): net: hns3: support wake on lan configuration and query net: hns3: support debugfs for wake on lan drivers/net/ethernet/hisilicon/hns3/hnae3.h | 13 ++ .../hns3/hns3_common/hclge_comm_cmd.c | 1 + .../hns3/hns3_common/hclge_comm_cmd.h | 3 + .../ethernet/hisilicon/hns3/hns3_debugfs.c | 10 + .../ethernet/hisilicon/hns3/hns3_ethtool.c | 27 +++ .../hisilicon/hns3/hns3pf/hclge_cmd.h | 24 ++ .../hisilicon/hns3/hns3pf/hclge_debugfs.c | 62 ++++++ .../hisilicon/hns3/hns3pf/hclge_main.c | 206 ++++++++++++++++++ .../hisilicon/hns3/hns3pf/hclge_main.h | 10 + 9 files changed, 356 insertions(+) -- 2.30.0