net: add rte prefix to ether functions
[dpdk.git] / drivers / net / e1000 / igb_pf.c
index 9f15213..ab48a26 100644 (file)
@@ -43,7 +43,7 @@ int igb_vf_perm_addr_gen(struct rte_eth_dev *dev, uint16_t vf_num)
        uint16_t vfn;
 
        for (vfn = 0; vfn < vf_num; vfn++) {
-               eth_random_addr(vf_mac_addr);
+               rte_eth_random_addr(vf_mac_addr);
                /* keep the random address as default */
                memcpy(vfinfo[vfn].vf_mac_addresses, vf_mac_addr,
                                ETHER_ADDR_LEN);
@@ -306,8 +306,8 @@ igb_vf_set_mac_addr(struct rte_eth_dev *dev, uint32_t vf, uint32_t *msgbuf)
        uint8_t *new_mac = (uint8_t *)(&msgbuf[1]);
        int rah;
 
-       if (is_unicast_ether_addr((struct rte_ether_addr *)new_mac)) {
-               if (!is_zero_ether_addr((struct rte_ether_addr *)new_mac))
+       if (rte_is_unicast_ether_addr((struct rte_ether_addr *)new_mac)) {
+               if (!rte_is_zero_ether_addr((struct rte_ether_addr *)new_mac))
                        rte_memcpy(vfinfo[vf].vf_mac_addresses, new_mac,
                                sizeof(vfinfo[vf].vf_mac_addresses));
                hw->mac.ops.rar_set(hw, new_mac, rar_entry);