Merge branch 'ethtool-master-slave'
Oleksij Rempel says:
====================
provide support for PHY master/slave configuration
changes v6:
- use NL_SET_ERR_MSG_ATTR in ethnl_update_linkmodes
- add sanity checks in the ioctl interface
- use bool for ethnl_validate_master_slave_cfg()
changes v5:
- set MASTER_SLAVE_CFG_UNSUPPORTED as default value
- send a netlink error message on validation error
- more code fixes
changes v4:
- rename port_mode to master_slave
- move validation code to net/ethtool/linkmodes.c
- add UNSUPPORTED state and avoid sending unsupported fields
- more formatting and naming fixes
- tja11xx: support only force mode
- tja11xx: mark state as unsupported
changes v3:
- provide separate field for config and state.
- make state rejected on set
- add validation
changes v2:
- change names. Use MASTER_PREFERRED instead of MULTIPORT
- configure master/slave only on request. Default configuration can be
provided by PHY or eeprom
- status and configuration to the user space.
====================
Signed-off-by:
David S. Miller <davem@davemloft.net>
No related branches found
No related tags found
Showing
- Documentation/networking/ethtool-netlink.rst 19 additions, 16 deletionsDocumentation/networking/ethtool-netlink.rst
- drivers/net/phy/nxp-tja11xx.c 43 additions, 0 deletionsdrivers/net/phy/nxp-tja11xx.c
- drivers/net/phy/phy.c 3 additions, 1 deletiondrivers/net/phy/phy.c
- drivers/net/phy/phy_device.c 94 additions, 0 deletionsdrivers/net/phy/phy_device.c
- include/linux/phy.h 3 additions, 0 deletionsinclude/linux/phy.h
- include/uapi/linux/ethtool.h 15 additions, 1 deletioninclude/uapi/linux/ethtool.h
- include/uapi/linux/ethtool_netlink.h 2 additions, 0 deletionsinclude/uapi/linux/ethtool_netlink.h
- include/uapi/linux/mii.h 2 additions, 0 deletionsinclude/uapi/linux/mii.h
- net/ethtool/ioctl.c 6 additions, 0 deletionsnet/ethtool/ioctl.c
- net/ethtool/linkmodes.c 53 additions, 0 deletionsnet/ethtool/linkmodes.c
Loading
Please register or sign in to comment