On Mon, Jan 18, 2021 at 10:17:04AM +0000, ashid...@fujitsu.com wrote: > Hi Andrew > > > > Do you know how to switch between master/slave? > > > > There was a patch to ethtool merged for this: > > > > commit 558f7cc33daf82f945af432c79db40edcbe0dad0 > > Author: Oleksij Rempel <o.rem...@pengutronix.de> > > Date: Wed Jun 10 10:37:43 2020 +0200 > > > > netlink: add master/slave configuration support > > I know this. > -- > # ./ethtool --version > ethtool version 5.10 > # ./ethtool -s eth1 master-slave slave-force > ethtool (-s): invalid value 'slave-force' for parameter 'master-slave'
The parameter is called 'forced-slave'. See the man page: ethtool -s devname [speed N] [duplex half|full] [port tp|aui|bnc|mii] [mdix auto|on|off] [autoneg on|off] [advertise N[/M] | advertise mode on|off ...] [phyad N] [xcvr internal|external] [wol N[/M] | wol p|u|m|b|a|g|s|f|d...] [sopass xx:yy:zz:aa:bb:cc] [master-slave preferred- master|preferred-slave|forced-master|forced-slave] [msglvl N[/M] | msglvl type on|off ...] sudo ethtool -s eth10 master-slave forced-master netlink error: master/slave configuration not supported by device (offset 36) netlink error: Operation not supported Andrew