swconfig: support setting SWITCH_TYPE_LINK attributes
authorRafał Miłecki <zajec5@gmail.com>
Wed, 3 Feb 2016 09:38:42 +0000 (09:38 +0000)
committerRafał Miłecki <zajec5@gmail.com>
Wed, 3 Feb 2016 09:38:42 +0000 (09:38 +0000)
commit6219b3deae1c8dfbf405f5a701d3f3b00ebacce1
tree2a5357da35389b4019903ef2f86df7d3fcb0d409
parent6831bac31fde2f22bd0c26f500941e5feec17939
swconfig: support setting SWITCH_TYPE_LINK attributes

Supported syntax is inspired by ethtool. Example usages:
swconfig dev switch0 port 2 set link "duplex half speed 100"
swconfig dev switch0 port 2 set link "autoneg on"

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 48624
package/network/config/swconfig/src/swlib.c