bonding: improve nl error msg when device can't be enslaved because of IFF_MASTER
authorAntoine Tenart <atenart@kernel.org>
Mon, 16 Aug 2021 10:08:28 +0000 (12:08 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Aug 2021 13:03:30 +0000 (14:03 +0100)
commit1b3f78df6a80932d7deb0155d8b0871e8d3e4bca
tree5b284bbeaeb93b50ed34b03ee46103d3f96eb48f
parentab6361382fc1cd57e2d06a1ee29bf7b8e98ca257
bonding: improve nl error msg when device can't be enslaved because of IFF_MASTER

Use a more user friendly netlink error message when a device can't be
enslaved because it has IFF_MASTER, by not referring directly to a
kernel internal flag.

Signed-off-by: Antoine Tenart <atenart@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c