net: always pass struct netdev_notifier_info to netdevice notifiers
commit 351638e7de
(net: pass info struct via netdevice notifier)
breaks booting of my KVM guest, this is due to we still forget to pass
struct netdev_notifier_info in several places. This patch completes it.
Cc: Jiri Pirko <jiri@resnulli.us>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
06ecf24bdf
commit
75538c2b85
@@ -1609,6 +1609,12 @@ struct netdev_notifier_change_info {
|
||||
unsigned int flags_changed;
|
||||
};
|
||||
|
||||
static inline void netdev_notifier_info_init(struct netdev_notifier_info *info,
|
||||
struct net_device *dev)
|
||||
{
|
||||
info->dev = dev;
|
||||
}
|
||||
|
||||
static inline struct net_device *
|
||||
netdev_notifier_info_to_dev(const struct netdev_notifier_info *info)
|
||||
{
|
||||
|
Reference in New Issue
Block a user