libteam: Add check to disallow creating device names longer than 15 chars.
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.
teamd_init() failed.
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
is created.
Failed to create team device.
teamd_init() failed.
Failed: File name too long

Signed-off-by: Sridhar Samudrala <f1557ace2262e6570e381b5efdec1c072f854660@intel.com>
Signed-off-by: Jiri Pirko <1b548d10035ae428195c41f5d55eedb1437ccd8a@resnulli.us>

marceloleitner/libteam,marceloleitner/libteam,jpirko/libteam,jpirko/libteam,ekinzie/libteam,ekinzie/libteam,jpirko/libteam,ekinzie/libteam,marceloleitner/libteam