diff options
| author | Cong Wang <amwang@redhat.com> | 2013-05-28 23:30:50 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2013-05-29 00:58:54 -0400 |
| commit | 75538c2b85cf22eb9af6adfaf26ed7219025adeb (patch) | |
| tree | f6791d0d285ff7e716fe8f225c4648e62a34421e /include/linux | |
| parent | 06ecf24bdf2b7afc6c8fd13de6dba2a96dd331b6 (diff) | |
net: always pass struct netdev_notifier_info to netdevice notifiers
commit 351638e7deeed2ec8ce451b53d3 (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>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/netdevice.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 850271809a9e..8f967e34142b 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
| @@ -1609,6 +1609,12 @@ struct netdev_notifier_change_info { | |||
| 1609 | unsigned int flags_changed; | 1609 | unsigned int flags_changed; |
| 1610 | }; | 1610 | }; |
| 1611 | 1611 | ||
| 1612 | static inline void netdev_notifier_info_init(struct netdev_notifier_info *info, | ||
| 1613 | struct net_device *dev) | ||
| 1614 | { | ||
| 1615 | info->dev = dev; | ||
| 1616 | } | ||
| 1617 | |||
| 1612 | static inline struct net_device * | 1618 | static inline struct net_device * |
| 1613 | netdev_notifier_info_to_dev(const struct netdev_notifier_info *info) | 1619 | netdev_notifier_info_to_dev(const struct netdev_notifier_info *info) |
| 1614 | { | 1620 | { |
