On Tue, Aug 25, 2015 at 11:05:23AM +0300, Ido Schimmel wrote:
In order to test link negotiation it is useful to have methods that
can
change the link state of an interface from a task.
Add the 'set_link_up' and 'set_link_down' methods for interfaces.
Unlike existing methods, these methods only change the link state and
nothing else (e.g. setting an address).
Changes in V2:
* Rename 'carrier_on' to 'link_up'
* Rename 'carrier_off' to 'link_down'
Signed-off-by: Ido Schimmel <idosch(a)mellanox.com>
Signed-off-by: Jiri Pirko <jiri(a)mellanox.com>
ack to both patches
Acked-by: Ondrej Lichtner <olichtne(a)redhat.com>