Author: Sridhar Samudrala <sridhar.samudrala(a)intel.com>
Date: 2015-05-30 (Sat, 30 May 2015)
libteam: Add check to disallow creating device names longer than 15 chars.
Trying to create a team device with name > 15 char results in a failure, but
a netdev with truncated name is created.
Netdevice "0123456789abcdef" not found.
Failed: No such device
114: 0123456789abcde@NONE: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode
DEFAULT group default
link/ether 42:21:52:eb:37:a0 brd ff:ff:ff:ff:ff:ff
This patch fixes this issue by failing before a netdev with truncated name
Failed to create team device.
Failed: File name too long
Signed-off-by: Sridhar Samudrala <sridhar.samudrala(a)intel.com>
Signed-off-by: Jiri Pirko <jiri(a)resnulli.us>