If requested_hwaddr is not set, then MAC will be resumed
after netdev_dpdk_reconfigure is called, such as we set
options of dpdk-vlan-start.

Signed-off-by: wanghanlin <[email protected]>
---
 lib/netdev-dpdk.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c
index fb0dd43f7..a67be06ab 100644
--- a/lib/netdev-dpdk.c
+++ b/lib/netdev-dpdk.c
@@ -2830,6 +2830,7 @@ netdev_dpdk_set_etheraddr__(struct netdev_dpdk *dev, 
const struct eth_addr mac)
     }
     if (!err) {
         dev->hwaddr = mac;
+        dev->requested_hwaddr = mac;
     } else {
         VLOG_WARN("%s: Failed to set requested mac("ETH_ADDR_FMT"): %s",
                   netdev_get_name(&dev->up), ETH_ADDR_ARGS(mac),
-- 
2.34.1

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to