octeontx2-pf: ethtool physical link configuration
authorChristina Jacob <cjacob@marvell.com>
Tue, 9 Feb 2021 10:35:31 +0000 (16:05 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Feb 2021 23:19:53 +0000 (15:19 -0800)
commitcff713ce6c1307f0701cf905e05c944d75369dbc
tree03ef398a98016247b00b0996c8351489e2e02d37
parent1a50280c25ecfb1243e40eb3e9d3404cbc754d7a
octeontx2-pf: ethtool physical link configuration

Register set_link_ksetting callback with driver such that
link configurations parameters like advertised mode,speed, duplex
and autoneg can be configured.

below command
ethtool -s eth0 advertise 0x1 speed 10 duplex full autoneg on

Signed-off-by: Christina Jacob <cjacob@marvell.com>
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_ethtool.c