]> git.baikalelectronics.ru Git - kernel.git/commit
net: Add extack to netdev_notifier_info
authorDavid Ahern <dsahern@gmail.com>
Thu, 5 Oct 2017 00:48:45 +0000 (17:48 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Oct 2017 04:39:33 +0000 (21:39 -0700)
commit72c9c6fbf654f522d0e1d790c3fa10cb6a375389
treea79f12d531ee73bac94677f77fd8c6e85a493a89
parente1ce0da74a25a8f83f3ea30bf3ff6e5cdf016046
net: Add extack to netdev_notifier_info

Add netlink_ext_ack to netdev_notifier_info to allow notifier
handlers to return errors to userspace.

Clean up the initialization in dev.c such that extack is easily
added in subsequent patches where relevant. Specifically, remove
the init call in call_netdevice_notifiers_info and have callers
initalize on stack when info is declared.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/core/dev.c