bonding: improve nl error msg when device can't be enslaved because of IFF_MASTER
Subsystems (3)
PATCH 1/1 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 <[email protected]>
--- drivers/net/bonding/bond_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/bonding/bond_main.c +1 -1
@@ -1759,7 +1759,7 @@ int bond_enslave(struct net_device *bond_dev, struct net_device *slave_dev,if (slave_dev->flags &IFF_MASTER && !netif_is_bond_master (slave_dev)) {BOND_NL_ERR (bond_dev, extack, -"Device with IFF_MASTER cannot be enslaved" ); +"Device type (master device) cannot be enslaved" );return -EPERM ; }
Signature · 1 line
2.31.1
This patch was applied to netdev/net-next.git (refs/heads/master):
Hello:
This patch was applied to netdev/net-next.git (refs/heads/master):
Quoted 8 lines · On Mon, 16 Aug 2021 12:08:28 +0200 you wrote:
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 <[email protected]>--- drivers/net/bonding/bond_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Here is the summary with links:
- [net-next] bonding: improve nl error msg when device can't be enslaved because of IFF_MASTER
https://git.kernel.org/netdev/net-next/c/1b3f78df6a80
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html