diff options
author | Jiri Pirko <jpirko@redhat.com> | 2010-03-10 05:28:56 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-03-18 23:00:01 -0400 |
commit | 93d9b7d7a85cfb4e1711d5226eba73586dd4919f (patch) | |
tree | e821e36c2d2eb07cdc46df1d3b1ea23afaf970ca /net/ipv6/addrconf.c | |
parent | 1e94d72feab025b8f7c55d07020602f82f3a97dd (diff) |
net: rename notifier defines for netdev type change
Since generally there could be more netdevices changing type other
than bonding, making this event type name "bonding-unrelated"
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/addrconf.c')
-rw-r--r-- | net/ipv6/addrconf.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 3381b4317c27..8d41abc40db5 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c | |||
@@ -137,8 +137,8 @@ static DEFINE_SPINLOCK(addrconf_verify_lock); | |||
137 | static void addrconf_join_anycast(struct inet6_ifaddr *ifp); | 137 | static void addrconf_join_anycast(struct inet6_ifaddr *ifp); |
138 | static void addrconf_leave_anycast(struct inet6_ifaddr *ifp); | 138 | static void addrconf_leave_anycast(struct inet6_ifaddr *ifp); |
139 | 139 | ||
140 | static void addrconf_bonding_change(struct net_device *dev, | 140 | static void addrconf_type_change(struct net_device *dev, |
141 | unsigned long event); | 141 | unsigned long event); |
142 | static int addrconf_ifdown(struct net_device *dev, int how); | 142 | static int addrconf_ifdown(struct net_device *dev, int how); |
143 | 143 | ||
144 | static void addrconf_dad_start(struct inet6_ifaddr *ifp, u32 flags); | 144 | static void addrconf_dad_start(struct inet6_ifaddr *ifp, u32 flags); |
@@ -2584,9 +2584,9 @@ static int addrconf_notify(struct notifier_block *this, unsigned long event, | |||
2584 | return notifier_from_errno(err); | 2584 | return notifier_from_errno(err); |
2585 | } | 2585 | } |
2586 | break; | 2586 | break; |
2587 | case NETDEV_BONDING_OLDTYPE: | 2587 | case NETDEV_PRE_TYPE_CHANGE: |
2588 | case NETDEV_BONDING_NEWTYPE: | 2588 | case NETDEV_POST_TYPE_CHANGE: |
2589 | addrconf_bonding_change(dev, event); | 2589 | addrconf_type_change(dev, event); |
2590 | break; | 2590 | break; |
2591 | } | 2591 | } |
2592 | 2592 | ||
@@ -2601,16 +2601,16 @@ static struct notifier_block ipv6_dev_notf = { | |||
2601 | .priority = 0 | 2601 | .priority = 0 |
2602 | }; | 2602 | }; |
2603 | 2603 | ||
2604 | static void addrconf_bonding_change(struct net_device *dev, unsigned long event) | 2604 | static void addrconf_type_change(struct net_device *dev, unsigned long event) |
2605 | { | 2605 | { |
2606 | struct inet6_dev *idev; | 2606 | struct inet6_dev *idev; |
2607 | ASSERT_RTNL(); | 2607 | ASSERT_RTNL(); |
2608 | 2608 | ||
2609 | idev = __in6_dev_get(dev); | 2609 | idev = __in6_dev_get(dev); |
2610 | 2610 | ||
2611 | if (event == NETDEV_BONDING_NEWTYPE) | 2611 | if (event == NETDEV_POST_TYPE_CHANGE) |
2612 | ipv6_mc_remap(idev); | 2612 | ipv6_mc_remap(idev); |
2613 | else if (event == NETDEV_BONDING_OLDTYPE) | 2613 | else if (event == NETDEV_PRE_TYPE_CHANGE) |
2614 | ipv6_mc_unmap(idev); | 2614 | ipv6_mc_unmap(idev); |
2615 | } | 2615 | } |
2616 | 2616 | ||