]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
net: Add support for CHANGEUPPER notifier error injection
authorIdo Schimmel <idosch@mellanox.com>
Thu, 3 Dec 2015 11:12:04 +0000 (12:12 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Dec 2015 16:49:23 +0000 (11:49 -0500)
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>
Documentation/fault-injection/notifier-error-inject.txt
lib/netdev-notifier-error-inject.c

index 71e638a4c497f8f3107cab86cb9ba10bf385e159..83d3f4e43e91726201ba56392f0723c40927fc67 100644 (file)
@@ -103,6 +103,7 @@ Netdevice notifier events which can be failed are:
  * NETDEV_POST_INIT
  * NETDEV_PRECHANGEMTU
  * NETDEV_PRECHANGEUPPER
+ * NETDEV_CHANGEUPPER
 
 Example: Inject netdevice mtu change error (-22 == -EINVAL)
 
index b2b856675d61c29cbe181cdcd37face4caaf254b..13e9c62e216ff010bcace555da96daabb708fe67 100644 (file)
@@ -18,6 +18,7 @@ static struct notifier_err_inject netdev_notifier_err_inject = {
                { NOTIFIER_ERR_INJECT_ACTION(NETDEV_POST_INIT) },
                { NOTIFIER_ERR_INJECT_ACTION(NETDEV_PRECHANGEMTU) },
                { NOTIFIER_ERR_INJECT_ACTION(NETDEV_PRECHANGEUPPER) },
+               { NOTIFIER_ERR_INJECT_ACTION(NETDEV_CHANGEUPPER) },
                {}
        }
 };