Loading drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c +1 −15 Original line number Diff line number Diff line Loading @@ -7,21 +7,7 @@ #include <linux/sfp.h> #include "hns3_enet.h" struct hns3_stats { char stats_string[ETH_GSTRING_LEN]; int stats_offset; }; struct hns3_sfp_type { u8 type; u8 ext_type; }; struct hns3_pflag_desc { char name[ETH_GSTRING_LEN]; void (*handler)(struct net_device *netdev, bool enable); }; #include "hns3_ethtool.h" /* tqp related stats */ #define HNS3_TQP_STAT(_string, _member) { \ Loading drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.h 0 → 100644 +25 −0 Original line number Diff line number Diff line /* SPDX-License-Identifier: GPL-2.0+ */ // Copyright (c) 2021 Hisilicon Limited. #ifndef __HNS3_ETHTOOL_H #define __HNS3_ETHTOOL_H #include <linux/ethtool.h> #include <linux/netdevice.h> struct hns3_stats { char stats_string[ETH_GSTRING_LEN]; int stats_offset; }; struct hns3_sfp_type { u8 type; u8 ext_type; }; struct hns3_pflag_desc { char name[ETH_GSTRING_LEN]; void (*handler)(struct net_device *netdev, bool enable); }; #endif Loading
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c +1 −15 Original line number Diff line number Diff line Loading @@ -7,21 +7,7 @@ #include <linux/sfp.h> #include "hns3_enet.h" struct hns3_stats { char stats_string[ETH_GSTRING_LEN]; int stats_offset; }; struct hns3_sfp_type { u8 type; u8 ext_type; }; struct hns3_pflag_desc { char name[ETH_GSTRING_LEN]; void (*handler)(struct net_device *netdev, bool enable); }; #include "hns3_ethtool.h" /* tqp related stats */ #define HNS3_TQP_STAT(_string, _member) { \ Loading
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.h 0 → 100644 +25 −0 Original line number Diff line number Diff line /* SPDX-License-Identifier: GPL-2.0+ */ // Copyright (c) 2021 Hisilicon Limited. #ifndef __HNS3_ETHTOOL_H #define __HNS3_ETHTOOL_H #include <linux/ethtool.h> #include <linux/netdevice.h> struct hns3_stats { char stats_string[ETH_GSTRING_LEN]; int stats_offset; }; struct hns3_sfp_type { u8 type; u8 ext_type; }; struct hns3_pflag_desc { char name[ETH_GSTRING_LEN]; void (*handler)(struct net_device *netdev, bool enable); }; #endif