Re: [PATCH net-next] team: Use extack to report enslavement failures
From: David Miller <davem@davemloft.net>
Date: 2018-02-28 16:02:33
From: David Miller <davem@davemloft.net>
Date: 2018-02-28 16:02:33
From: Ido Schimmel <redacted> Date: Tue, 27 Feb 2018 17:38:08 +0200
Use extack inside team's enslavement function and also propagate it to
the netdevice notifier to allow enslaved ports to report the failure
reason. Example:
$ teamd -t team0 -d -c '{"runner": {"name": "lacp"}}'
$ ip link set dev lo master team0
Error: Loopback device can't be added as a team port.
Signed-off-by: Ido Schimmel <redacted>
Acked-by: Jiri Pirko <redacted>Applied, thank you. David A., when you ACK patches, please start your Acked-by: tag on the first column of a line. Don't put things like "LGTM. " before it. Otherwise patchwork won't automatically pick it up. Thanks.