]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: hibmcge: Implement some ethtool_ops functions
authorJijie Shao <shaojijie@huawei.com>
Tue, 15 Oct 2024 12:35:14 +0000 (20:35 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Mon, 21 Oct 2024 09:26:53 +0000 (11:26 +0200)
commite8d13548bd0831c8b3cb53ff9ec20d34ef2523ef
treefd197e40455cbc56495defa082a44beeeabd51e5
parentf72e2559406191f2c7e2d15b78df6066594b0a9e
net: hibmcge: Implement some ethtool_ops functions

Implement the .get_drvinfo .get_link .get_link_ksettings to get
the basic information and working status of the driver.
Implement the .set_link_ksettings to modify the rate, duplex,
and auto-negotiation status.

Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/hisilicon/hibmcge/hbg_ethtool.c [new file with mode: 0644]
drivers/net/ethernet/hisilicon/hibmcge/hbg_ethtool.h [new file with mode: 0644]
drivers/net/ethernet/hisilicon/hibmcge/hbg_main.c