File tree 1 file changed +8
-0
lines changed 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 28
28
const struct nf_br_ops __rcu * nf_br_ops __read_mostly ;
29
29
EXPORT_SYMBOL_GPL (nf_br_ops );
30
30
31
+ static struct lock_class_key bridge_netdev_addr_lock_key ;
32
+
31
33
/* net device transmit always called with BH disabled */
32
34
netdev_tx_t br_dev_xmit (struct sk_buff * skb , struct net_device * dev )
33
35
{
@@ -87,6 +89,11 @@ netdev_tx_t br_dev_xmit(struct sk_buff *skb, struct net_device *dev)
87
89
return NETDEV_TX_OK ;
88
90
}
89
91
92
+ static void br_set_lockdep_class (struct net_device * dev )
93
+ {
94
+ lockdep_set_class (& dev -> addr_list_lock , & bridge_netdev_addr_lock_key );
95
+ }
96
+
90
97
static int br_dev_init (struct net_device * dev )
91
98
{
92
99
struct net_bridge * br = netdev_priv (dev );
@@ -99,6 +106,7 @@ static int br_dev_init(struct net_device *dev)
99
106
err = br_vlan_init (br );
100
107
if (err )
101
108
free_percpu (br -> stats );
109
+ br_set_lockdep_class (dev );
102
110
103
111
return err ;
104
112
}
You can’t perform that action at this time.
0 commit comments