net: add rte prefix to ether defines
[dpdk.git] / drivers / net / bonding / rte_eth_bond_alb.c
index 00d6b50..a1c577b 100644 (file)
@@ -216,9 +216,9 @@ bond_mode_alb_arp_upd(struct client_data *client_info,
        rte_ether_addr_copy(&client_info->app_mac, &eth_h->s_addr);
        rte_ether_addr_copy(&client_info->cli_mac, &eth_h->d_addr);
        if (client_info->vlan_count > 0)
-               eth_h->ether_type = rte_cpu_to_be_16(ETHER_TYPE_VLAN);
+               eth_h->ether_type = rte_cpu_to_be_16(RTE_ETHER_TYPE_VLAN);
        else
-               eth_h->ether_type = rte_cpu_to_be_16(ETHER_TYPE_ARP);
+               eth_h->ether_type = rte_cpu_to_be_16(RTE_ETHER_TYPE_ARP);
 
        arp_h = (struct rte_arp_hdr *)(
                (char *)eth_h + sizeof(struct rte_ether_hdr)
@@ -233,8 +233,8 @@ bond_mode_alb_arp_upd(struct client_data *client_info,
        arp_h->arp_data.arp_tip = client_info->cli_ip;
 
        arp_h->arp_hardware = rte_cpu_to_be_16(RTE_ARP_HRD_ETHER);
-       arp_h->arp_protocol = rte_cpu_to_be_16(ETHER_TYPE_IPv4);
-       arp_h->arp_hlen = ETHER_ADDR_LEN;
+       arp_h->arp_protocol = rte_cpu_to_be_16(RTE_ETHER_TYPE_IPv4);
+       arp_h->arp_hlen = RTE_ETHER_ADDR_LEN;
        arp_h->arp_plen = sizeof(uint32_t);
        arp_h->arp_opcode = rte_cpu_to_be_16(RTE_ARP_OP_REPLY);