Skip to content

Commit daf9209

Browse files
Amerigo Wangdavem330
authored andcommitted
net: rename NETDEV_BONDING_DESLAVE to NETDEV_RELEASE
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>
1 parent bb8ed63 commit daf9209

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎drivers/net/bonding/bond_main.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1974,7 +1974,7 @@ int bond_release(struct net_device *bond_dev, struct net_device *slave_dev)
19741974
}
19751975

19761976
block_netpoll_tx();
1977-
netdev_bonding_change(bond_dev, NETDEV_BONDING_DESLAVE);
1977+
netdev_bonding_change(bond_dev, NETDEV_RELEASE);
19781978
write_lock_bh(&bond->lock);
19791979

19801980
slave = bond_get_slave_by_dev(bond, slave_dev);

‎drivers/net/netconsole.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ static int netconsole_netdev_event(struct notifier_block *this,
621621
bool stopped = false;
622622

623623
if (!(event == NETDEV_CHANGENAME || event == NETDEV_UNREGISTER ||
624-
event == NETDEV_BONDING_DESLAVE || event == NETDEV_JOIN))
624+
event == NETDEV_RELEASE || event == NETDEV_JOIN))
625625
goto done;
626626

627627
spin_lock_irqsave(&target_list_lock, flags);
@@ -632,7 +632,7 @@ static int netconsole_netdev_event(struct notifier_block *this,
632632
case NETDEV_CHANGENAME:
633633
strlcpy(nt->np.dev_name, dev->name, IFNAMSIZ);
634634
break;
635-
case NETDEV_BONDING_DESLAVE:
635+
case NETDEV_RELEASE:
636636
case NETDEV_JOIN:
637637
case NETDEV_UNREGISTER:
638638
/*
@@ -664,7 +664,7 @@ static int netconsole_netdev_event(struct notifier_block *this,
664664
case NETDEV_UNREGISTER:
665665
printk(KERN_CONT "unregistered\n");
666666
break;
667-
case NETDEV_BONDING_DESLAVE:
667+
case NETDEV_RELEASE:
668668
printk(KERN_CONT "released slaves\n");
669669
break;
670670
case NETDEV_JOIN:

‎include/linux/notifier.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ static inline int notifier_to_errno(int ret)
209209
#define NETDEV_POST_TYPE_CHANGE 0x000F
210210
#define NETDEV_POST_INIT 0x0010
211211
#define NETDEV_UNREGISTER_BATCH 0x0011
212-
#define NETDEV_BONDING_DESLAVE 0x0012
212+
#define NETDEV_RELEASE 0x0012
213213
#define NETDEV_NOTIFY_PEERS 0x0013
214214
#define NETDEV_JOIN 0x0014
215215

0 commit comments

Comments
 (0)