Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / drivers / net / ethernet / hisilicon / hibmcge / hbg_ethtool.c
blobc3370114aef326209b6120758d09e9f1f969f1b7
1 // SPDX-License-Identifier: GPL-2.0+
2 // Copyright (c) 2024 Hisilicon Limited.
4 #include <linux/ethtool.h>
5 #include <linux/phy.h>
6 #include "hbg_ethtool.h"
8 static const struct ethtool_ops hbg_ethtool_ops = {
9 .get_link = ethtool_op_get_link,
10 .get_link_ksettings = phy_ethtool_get_link_ksettings,
11 .set_link_ksettings = phy_ethtool_set_link_ksettings,
14 void hbg_ethtool_set_ops(struct net_device *netdev)
16 netdev->ethtool_ops = &hbg_ethtool_ops;