projects
/
cascardo
/
ovs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
datapath: stt: Use RCU API to update stt-dev list.
[cascardo/ovs.git]
/
datapath
/
linux
/
compat
/
stt.c
diff --git
a/datapath/linux/compat/stt.c
b/datapath/linux/compat/stt.c
index
8064980
..
dcd70ff
100644
(file)
--- a/
datapath/linux/compat/stt.c
+++ b/
datapath/linux/compat/stt.c
@@
-1770,7
+1770,7
@@
static int stt_configure(struct net *net, struct net_device *dev,
if (err)
return err;
- list_add(&stt->next, &sn->stt_list);
+ list_add
_rcu
(&stt->next, &sn->stt_list);
return 0;
}
@@
-1789,7
+1789,7
@@
static void stt_dellink(struct net_device *dev, struct list_head *head)
{
struct stt_dev *stt = netdev_priv(dev);
- list_del(&stt->next);
+ list_del
_rcu
(&stt->next);
unregister_netdevice_queue(dev, head);
}