]> 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)
commit266065c5be65763ee8db17e12b27b75549fe418f
treea79f12d531ee73bac94677f77fd8c6e85a493a89
parente8758477e7b407fbdedc302682fd76cd05b8f491
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