git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: Fix race condition waiting for monitor thread.
[sliver-openvswitch.git]
/
lib
/
netdev-dpdk.c
diff --git
a/lib/netdev-dpdk.c
b/lib/netdev-dpdk.c
index
4b36f52
..
d9676ed
100644
(file)
--- a/
lib/netdev-dpdk.c
+++ b/
lib/netdev-dpdk.c
@@
-28,7
+28,6
@@
#include <unistd.h>
#include <stdio.h>
#include <unistd.h>
#include <stdio.h>
-#include "connectivity.h"
#include "dpif-netdev.h"
#include "list.h"
#include "netdev-dpdk.h"
#include "dpif-netdev.h"
#include "list.h"
#include "netdev-dpdk.h"
@@
-41,7
+40,6
@@
#include "ovs-rcu.h"
#include "packets.h"
#include "shash.h"
#include "ovs-rcu.h"
#include "packets.h"
#include "shash.h"
-#include "seq.h"
#include "sset.h"
#include "unaligned.h"
#include "timeval.h"
#include "sset.h"
#include "unaligned.h"
#include "timeval.h"
@@
-318,7
+316,7
@@
check_link_status(struct netdev_dpdk *dev)
rte_eth_link_get_nowait(dev->port_id, &link);
if (dev->link.link_status != link.link_status) {
rte_eth_link_get_nowait(dev->port_id, &link);
if (dev->link.link_status != link.link_status) {
-
seq_change(connectivity_seq_get()
);
+
netdev_change_seq_changed(&dev->up
);
dev->link_reset_cnt++;
dev->link = link;
dev->link_reset_cnt++;
dev->link = link;
@@
-718,6
+716,7
@@
netdev_dpdk_set_etheraddr(struct netdev *netdev,
ovs_mutex_lock(&dev->mutex);
if (!eth_addr_equals(dev->hwaddr, mac)) {
memcpy(dev->hwaddr, mac, ETH_ADDR_LEN);
ovs_mutex_lock(&dev->mutex);
if (!eth_addr_equals(dev->hwaddr, mac)) {
memcpy(dev->hwaddr, mac, ETH_ADDR_LEN);
+ netdev_change_seq_changed(netdev);
}
ovs_mutex_unlock(&dev->mutex);
}
ovs_mutex_unlock(&dev->mutex);
@@
-790,6
+789,7
@@
netdev_dpdk_set_mtu(const struct netdev *netdev, int mtu)
}
dpdk_mp_put(old_mp);
}
dpdk_mp_put(old_mp);
+ netdev_change_seq_changed(netdev);
out:
ovs_mutex_unlock(&dev->mutex);
ovs_mutex_unlock(&dpdk_mutex);
out:
ovs_mutex_unlock(&dev->mutex);
ovs_mutex_unlock(&dpdk_mutex);