Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1281193 > unrolled thread

Re: [PATCH] net: add support for netdev notifier error injection

Started byDavid Miller <davem@davemloft.net>
First post2015-12-01 21:40 +0100
Last post2015-12-01 21:40 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] net: add support for netdev notifier error injection David Miller <davem@davemloft.net> - 2015-12-01 21:40 +0100

#1281193 — Re: [PATCH] net: add support for netdev notifier error injection

FromDavid Miller <davem@davemloft.net>
Date2015-12-01 21:40 +0100
SubjectRe: [PATCH] net: add support for netdev notifier error injection
Message-ID<qAZSr-622-27@gated-at.bofh.it>
From: Nikolay Aleksandrov <razor@blackwall.org>
Date: Sat, 28 Nov 2015 13:45:28 +0100

> From: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
> 
> This module allows to insert errors in some of netdevice's notifier
> events. All network drivers use these notifiers to signal various events
> and to check if they are allowed, e.g. PRECHANGEMTU and CHANGEMTU
> afterwards. Until recently I had to run failure tests by injecting
> a custom module, but now this infrastructure makes it trivial to test
> these failure paths. Some of the recent bugs I fixed were found using
> this module.
> Here's an example:
>  $ cd /sys/kernel/debug/notifier-error-inject/netdev
>  $ echo -22 > actions/NETDEV_CHANGEMTU/error
>  $ ip link set eth0 mtu 1024
>  RTNETLINK answers: Invalid argument
> 
> CC: Akinobu Mita <akinobu.mita@gmail.com>
> CC: "David S. Miller" <davem@davemloft.net>
> CC: netdev <netdev@vger.kernel.org>
> Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>

This looks fine, applied to net-next, thanks!
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web