// SPDX-License-Identifier: GPL-2.0+ // Copyright (c) 2024 Hisilicon Limited. #include #include #include "hbg_ethtool.h" static const struct ethtool_ops hbg_ethtool_ops = { .get_link = ethtool_op_get_link, .get_link_ksettings = phy_ethtool_get_link_ksettings, .set_link_ksettings = phy_ethtool_set_link_ksettings, }; void hbg_ethtool_set_ops(struct net_device *netdev) { netdev->ethtool_ops = &hbg_ethtool_ops; }