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)
commit51d0c04795a4b5d9a188336884887a9d394a94b0
treea79f12d531ee73bac94677f77fd8c6e85a493a89
parent6621dd29eb9b5e6774ec7a9a75161352fdea47fc
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