]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/nfp/nfp_net.c
net/nfp: fix live MAC changes not supported
[dpdk.git] / drivers / net / nfp / nfp_net.c
index 6e5e305f1d7fb3ce962b9914c2fe1f25f044cd2f..ee743e9753ffdb93c1cc0d7252e3bf18b73817a2 100644 (file)
@@ -2886,6 +2886,9 @@ nfp_net_init(struct rte_eth_dev *eth_dev)
        ether_addr_copy((struct ether_addr *)hw->mac_addr,
                        &eth_dev->data->mac_addrs[0]);
 
+       if (!(hw->cap & NFP_NET_CFG_CTRL_LIVE_ADDR))
+               eth_dev->data->dev_flags |= RTE_ETH_DEV_NOLIVE_MAC_ADDR;
+
        PMD_INIT_LOG(INFO, "port %d VendorID=0x%x DeviceID=0x%x "
                     "mac=%02x:%02x:%02x:%02x:%02x:%02x",
                     eth_dev->data->port_id, pci_dev->id.vendor_id,