aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bonding/bond_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/bonding/bond_main.c')
-rw-r--r--drivers/net/bonding/bond_main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
index fd87dbe7999a..9737c06045d6 100644
--- a/drivers/net/bonding/bond_main.c
+++ b/drivers/net/bonding/bond_main.c
@@ -5042,7 +5042,9 @@ static int bond_check_params(struct bond_params *params)
5042 5042
5043static struct lock_class_key bonding_netdev_xmit_lock_key; 5043static struct lock_class_key bonding_netdev_xmit_lock_key;
5044 5044
5045static void bond_set_lockdep_class_one(struct netdev_queue *txq) 5045static void bond_set_lockdep_class_one(struct net_device *dev,
5046 struct netdev_queue *txq,
5047 void *_unused)
5046{ 5048{
5047 lockdep_set_class(&txq->_xmit_lock, 5049 lockdep_set_class(&txq->_xmit_lock,
5048 &bonding_netdev_xmit_lock_key); 5050 &bonding_netdev_xmit_lock_key);
@@ -5050,7 +5052,7 @@ static void bond_set_lockdep_class_one(struct netdev_queue *txq)
5050 5052
5051static void bond_set_lockdep_class(struct net_device *dev) 5053static void bond_set_lockdep_class(struct net_device *dev)
5052{ 5054{
5053 bond_set_lockdep_class_one(&dev->tx_queue); 5055 netdev_for_each_tx_queue(dev, bond_set_lockdep_class_one, NULL);
5054} 5056}
5055 5057
5056/* Create a new bond based on the specified name and bonding parameters. 5058/* Create a new bond based on the specified name and bonding parameters.