]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_kni/rte_kni.c
net: add rte prefix to ether structures
[dpdk.git] / lib / librte_kni / rte_kni.c
index 946459c79ca96b20dce422064b1e7c267a286d7d..7a41788e288f673fe6a3d94b06df429818225777 100644 (file)
@@ -451,7 +451,7 @@ kni_config_mac_address(uint16_t port_id, uint8_t mac_addr[])
        RTE_LOG(INFO, KNI, "Configure mac address of %d", port_id);
 
        ret = rte_eth_dev_default_mac_addr_set(port_id,
-                                              (struct ether_addr *)mac_addr);
+                                       (struct rte_ether_addr *)mac_addr);
        if (ret < 0)
                RTE_LOG(ERR, KNI, "Failed to config mac_addr for port %d\n",
                        port_id);