mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	net: bridge: use netdev_lockdep_set_classes()
br_set_lockdep_class() is missing many details. Use generic netdev_lockdep_set_classes() to not worry anymore. Signed-off-by: Eric Dumazet <edumazet@google.com> Link: https://lore.kernel.org/r/20240212140700.2795436-3-edumazet@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
		
							parent
							
								
									9a3c93af54
								
							
						
					
					
						commit
						c74e103991
					
				
					 1 changed files with 1 additions and 8 deletions
				
			
		| 
						 | 
				
			
			@ -108,13 +108,6 @@ netdev_tx_t br_dev_xmit(struct sk_buff *skb, struct net_device *dev)
 | 
			
		|||
	return NETDEV_TX_OK;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static struct lock_class_key bridge_netdev_addr_lock_key;
 | 
			
		||||
 | 
			
		||||
static void br_set_lockdep_class(struct net_device *dev)
 | 
			
		||||
{
 | 
			
		||||
	lockdep_set_class(&dev->addr_list_lock, &bridge_netdev_addr_lock_key);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static int br_dev_init(struct net_device *dev)
 | 
			
		||||
{
 | 
			
		||||
	struct net_bridge *br = netdev_priv(dev);
 | 
			
		||||
| 
						 | 
				
			
			@ -153,7 +146,7 @@ static int br_dev_init(struct net_device *dev)
 | 
			
		|||
		br_fdb_hash_fini(br);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	br_set_lockdep_class(dev);
 | 
			
		||||
	netdev_lockdep_set_classes(dev);
 | 
			
		||||
	return err;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue