net: rename NETDEV_BONDING_DESLAVE to NETDEV_RELEASE
authorAmerigo Wang <amwang@redhat.com>
Thu, 19 May 2011 21:39:12 +0000 (21:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 May 2011 01:01:19 +0000 (21:01 -0400)
s/NETDEV_BONDING_DESLAVE/NETDEV_RELEASE/ as Andy suggested.

Signed-off-by: WANG Cong <amwang@redhat.com>
Cc: Andy Gospodarek <andy@greyhouse.net>
Cc: Neil Horman <nhorman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c
drivers/net/netconsole.c
include/linux/notifier.h

index f4960f516c397d6064adbbf31795f312f757edd7..6dc4284615419d289a98bd1769108461d0c1ddcd 100644 (file)
@@ -1974,7 +1974,7 @@ int bond_release(struct net_device *bond_dev, struct net_device *slave_dev)
        }
 
        block_netpoll_tx();
-       netdev_bonding_change(bond_dev, NETDEV_BONDING_DESLAVE);
+       netdev_bonding_change(bond_dev, NETDEV_RELEASE);
        write_lock_bh(&bond->lock);
 
        slave = bond_get_slave_by_dev(bond, slave_dev);
index 4190786de4032d681f775025ddc3a91f61f3b0f5..dfc82720065ac0d68bb657dbf19150ff7dd4c89e 100644 (file)
@@ -621,7 +621,7 @@ static int netconsole_netdev_event(struct notifier_block *this,
        bool stopped = false;
 
        if (!(event == NETDEV_CHANGENAME || event == NETDEV_UNREGISTER ||
-             event == NETDEV_BONDING_DESLAVE || event == NETDEV_JOIN))
+             event == NETDEV_RELEASE || event == NETDEV_JOIN))
                goto done;
 
        spin_lock_irqsave(&target_list_lock, flags);
@@ -632,7 +632,7 @@ static int netconsole_netdev_event(struct notifier_block *this,
                        case NETDEV_CHANGENAME:
                                strlcpy(nt->np.dev_name, dev->name, IFNAMSIZ);
                                break;
-                       case NETDEV_BONDING_DESLAVE:
+                       case NETDEV_RELEASE:
                        case NETDEV_JOIN:
                        case NETDEV_UNREGISTER:
                                /*
@@ -664,7 +664,7 @@ static int netconsole_netdev_event(struct notifier_block *this,
                case NETDEV_UNREGISTER:
                        printk(KERN_CONT "unregistered\n");
                        break;
-               case NETDEV_BONDING_DESLAVE:
+               case NETDEV_RELEASE:
                        printk(KERN_CONT "released slaves\n");
                        break;
                case NETDEV_JOIN:
index a577762afbe74fa11cb2d8c74ceed95fd6e8093a..c0688b0168b3469bcb1a6f16001c4f81e15f2cd5 100644 (file)
@@ -209,7 +209,7 @@ static inline int notifier_to_errno(int ret)
 #define NETDEV_POST_TYPE_CHANGE        0x000F
 #define NETDEV_POST_INIT       0x0010
 #define NETDEV_UNREGISTER_BATCH 0x0011
-#define NETDEV_BONDING_DESLAVE  0x0012
+#define NETDEV_RELEASE         0x0012
 #define NETDEV_NOTIFY_PEERS    0x0013
 #define NETDEV_JOIN            0x0014