OSDN Git Service

bonding: Added -ENODEV interpret for slaves option
authorJianlin Lv <Jianlin.Lv@arm.com>
Sun, 14 Mar 2021 14:56:29 +0000 (22:56 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Mar 2021 19:40:01 +0000 (12:40 -0700)
commitacdff0df54264d187b648b80bc18265f0698f1ad
tree5f097d2555a01bc176375c2b3346df8d32a95c6a
parent8f64860f8b567cc4f8ac854a65cbf6337404c520
bonding: Added -ENODEV interpret for slaves option

When the incorrect interface name is stored in the slaves/active_slave
option of the bonding sysfs, the kernel does not record the log that
interface does not exist.

This patch adds a log for -ENODEV error, which will facilitate users to
figure out such issue.

Signed-off-by: Jianlin Lv <Jianlin.Lv@arm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_options.c