From: Alex Wang Date: Thu, 3 Apr 2014 16:46:31 +0000 (-0700) Subject: netdev-dpdk: Indicate the change of etheraddr and mtu. X-Git-Tag: sliver-openvswitch-2.2.90-1~3^2~144 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=045c0d1a77ae0592658f69ce071018ef32938253;p=sliver-openvswitch.git netdev-dpdk: Indicate the change of etheraddr and mtu. This commit makes the netdev-dpdk module signal the change of etheraddr and mtu by changing the global sequence number and incrementing its 'change_seq'. Signed-off-by: Alex Wang Acked-by: Ben Pfaff --- diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c index 3e47c5bd6..d9676eda9 100644 --- a/lib/netdev-dpdk.c +++ b/lib/netdev-dpdk.c @@ -716,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); + netdev_change_seq_changed(netdev); } ovs_mutex_unlock(&dev->mutex); @@ -788,6 +789,7 @@ netdev_dpdk_set_mtu(const struct netdev *netdev, int mtu) } dpdk_mp_put(old_mp); + netdev_change_seq_changed(netdev); out: ovs_mutex_unlock(&dev->mutex); ovs_mutex_unlock(&dpdk_mutex);