net: add rte prefix to ether functions
[dpdk.git] / lib / librte_pipeline / rte_table_action.c
index 693be2c..3cd1fd5 100644 (file)
@@ -615,8 +615,8 @@ encap_ether_apply(void *data,
                ETHER_TYPE_IPv6;
 
        /* Ethernet */
-       ether_addr_copy(&p->ether.ether.da, &d->ether.d_addr);
-       ether_addr_copy(&p->ether.ether.sa, &d->ether.s_addr);
+       rte_ether_addr_copy(&p->ether.ether.da, &d->ether.d_addr);
+       rte_ether_addr_copy(&p->ether.ether.sa, &d->ether.s_addr);
        d->ether.ether_type = rte_htons(ethertype);
 
        return 0;
@@ -633,8 +633,8 @@ encap_vlan_apply(void *data,
                ETHER_TYPE_IPv6;
 
        /* Ethernet */
-       ether_addr_copy(&p->vlan.ether.da, &d->ether.d_addr);
-       ether_addr_copy(&p->vlan.ether.sa, &d->ether.s_addr);
+       rte_ether_addr_copy(&p->vlan.ether.da, &d->ether.d_addr);
+       rte_ether_addr_copy(&p->vlan.ether.sa, &d->ether.s_addr);
        d->ether.ether_type = rte_htons(ETHER_TYPE_VLAN);
 
        /* VLAN */
@@ -657,8 +657,8 @@ encap_qinq_apply(void *data,
                ETHER_TYPE_IPv6;
 
        /* Ethernet */
-       ether_addr_copy(&p->qinq.ether.da, &d->ether.d_addr);
-       ether_addr_copy(&p->qinq.ether.sa, &d->ether.s_addr);
+       rte_ether_addr_copy(&p->qinq.ether.da, &d->ether.d_addr);
+       rte_ether_addr_copy(&p->qinq.ether.sa, &d->ether.s_addr);
        d->ether.ether_type = rte_htons(ETHER_TYPE_QINQ);
 
        /* SVLAN */
@@ -687,8 +687,8 @@ encap_mpls_apply(void *data,
        uint32_t i;
 
        /* Ethernet */
-       ether_addr_copy(&p->mpls.ether.da, &d->ether.d_addr);
-       ether_addr_copy(&p->mpls.ether.sa, &d->ether.s_addr);
+       rte_ether_addr_copy(&p->mpls.ether.da, &d->ether.d_addr);
+       rte_ether_addr_copy(&p->mpls.ether.sa, &d->ether.s_addr);
        d->ether.ether_type = rte_htons(ethertype);
 
        /* MPLS */
@@ -714,8 +714,8 @@ encap_pppoe_apply(void *data,
        struct encap_pppoe_data *d = data;
 
        /* Ethernet */
-       ether_addr_copy(&p->pppoe.ether.da, &d->ether.d_addr);
-       ether_addr_copy(&p->pppoe.ether.sa, &d->ether.s_addr);
+       rte_ether_addr_copy(&p->pppoe.ether.da, &d->ether.d_addr);
+       rte_ether_addr_copy(&p->pppoe.ether.sa, &d->ether.s_addr);
        d->ether.ether_type = rte_htons(ETHER_TYPE_PPPOE_SESSION);
 
        /* PPPoE and PPP*/
@@ -744,8 +744,8 @@ encap_vxlan_apply(void *data,
                        struct encap_vxlan_ipv4_vlan_data *d = data;
 
                        /* Ethernet */
-                       ether_addr_copy(&p->vxlan.ether.da, &d->ether.d_addr);
-                       ether_addr_copy(&p->vxlan.ether.sa, &d->ether.s_addr);
+                       rte_ether_addr_copy(&p->vxlan.ether.da, &d->ether.d_addr);
+                       rte_ether_addr_copy(&p->vxlan.ether.sa, &d->ether.s_addr);
                        d->ether.ether_type = rte_htons(ETHER_TYPE_VLAN);
 
                        /* VLAN */
@@ -783,8 +783,8 @@ encap_vxlan_apply(void *data,
                        struct encap_vxlan_ipv4_data *d = data;
 
                        /* Ethernet */
-                       ether_addr_copy(&p->vxlan.ether.da, &d->ether.d_addr);
-                       ether_addr_copy(&p->vxlan.ether.sa, &d->ether.s_addr);
+                       rte_ether_addr_copy(&p->vxlan.ether.da, &d->ether.d_addr);
+                       rte_ether_addr_copy(&p->vxlan.ether.sa, &d->ether.s_addr);
                        d->ether.ether_type = rte_htons(ETHER_TYPE_IPv4);
 
                        /* IPv4*/
@@ -818,8 +818,8 @@ encap_vxlan_apply(void *data,
                        struct encap_vxlan_ipv6_vlan_data *d = data;
 
                        /* Ethernet */
-                       ether_addr_copy(&p->vxlan.ether.da, &d->ether.d_addr);
-                       ether_addr_copy(&p->vxlan.ether.sa, &d->ether.s_addr);
+                       rte_ether_addr_copy(&p->vxlan.ether.da, &d->ether.d_addr);
+                       rte_ether_addr_copy(&p->vxlan.ether.sa, &d->ether.s_addr);
                        d->ether.ether_type = rte_htons(ETHER_TYPE_VLAN);
 
                        /* VLAN */
@@ -857,8 +857,8 @@ encap_vxlan_apply(void *data,
                        struct encap_vxlan_ipv6_data *d = data;
 
                        /* Ethernet */
-                       ether_addr_copy(&p->vxlan.ether.da, &d->ether.d_addr);
-                       ether_addr_copy(&p->vxlan.ether.sa, &d->ether.s_addr);
+                       rte_ether_addr_copy(&p->vxlan.ether.da, &d->ether.d_addr);
+                       rte_ether_addr_copy(&p->vxlan.ether.sa, &d->ether.s_addr);
                        d->ether.ether_type = rte_htons(ETHER_TYPE_IPv6);
 
                        /* IPv6*/