Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: Add support for CHANGEUPPER notifier error injection

Since CHANGEUPPER can now fail, add support for it in the newly
introduced netdev notifier error injection infrastructure.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Acked-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Ido Schimmel and committed by
David S. Miller
c39d0454 b03804e7

+2
+1
Documentation/fault-injection/notifier-error-inject.txt
··· 103 103 * NETDEV_POST_INIT 104 104 * NETDEV_PRECHANGEMTU 105 105 * NETDEV_PRECHANGEUPPER 106 + * NETDEV_CHANGEUPPER 106 107 107 108 Example: Inject netdevice mtu change error (-22 == -EINVAL) 108 109
+1
lib/netdev-notifier-error-inject.c
··· 18 18 { NOTIFIER_ERR_INJECT_ACTION(NETDEV_POST_INIT) }, 19 19 { NOTIFIER_ERR_INJECT_ACTION(NETDEV_PRECHANGEMTU) }, 20 20 { NOTIFIER_ERR_INJECT_ACTION(NETDEV_PRECHANGEUPPER) }, 21 + { NOTIFIER_ERR_INJECT_ACTION(NETDEV_CHANGEUPPER) }, 21 22 {} 22 23 } 23 24 };