avoid AltiVec keyword vector
[dpdk.git] / examples / l3fwd / l3fwd_lpm_altivec.h
index 7c68142..0c6852a 100644 (file)
@@ -14,7 +14,7 @@
  */
 static inline void
 processx4_step1(struct rte_mbuf *pkt[FWDSTEP],
-               vector unsigned int *dip,
+               __vector unsigned int *dip,
                uint32_t *ipv4_flag)
 {
        struct rte_ipv4_hdr *ipv4_hdr;
@@ -45,7 +45,7 @@ processx4_step1(struct rte_mbuf *pkt[FWDSTEP],
        ipv4_flag[0] &= pkt[3]->packet_type;
 
        rte_compiler_barrier();
-       dip[0] = (vector unsigned int){x0, x1, x2, x3};
+       dip[0] = (__vector unsigned int){x0, x1, x2, x3};
 }
 
 /*
@@ -54,22 +54,22 @@ processx4_step1(struct rte_mbuf *pkt[FWDSTEP],
  */
 static inline void
 processx4_step2(const struct lcore_conf *qconf,
-               vector unsigned int dip,
+               __vector unsigned int dip,
                uint32_t ipv4_flag,
                uint8_t portid,
                struct rte_mbuf *pkt[FWDSTEP],
                uint16_t dprt[FWDSTEP])
 {
        rte_xmm_t dst;
-       const vector unsigned char bswap_mask = (vector unsigned char){
+       const __vector unsigned char bswap_mask = (__vector unsigned char){
                                                        3, 2, 1, 0,
                                                        7, 6, 5, 4,
                                                        11, 10, 9, 8,
                                                        15, 14, 13, 12};
 
        /* Byte swap 4 IPV4 addresses. */
-       dip = (vector unsigned int)vec_perm(*(vector unsigned char *)&dip,
-                                       (vector unsigned char){}, bswap_mask);
+       dip = (__vector unsigned int)vec_perm(*(__vector unsigned char *)&dip,
+                                       (__vector unsigned char){}, bswap_mask);
 
        /* if all 4 packets are IPV4. */
        if (likely(ipv4_flag)) {
@@ -101,7 +101,7 @@ l3fwd_lpm_send_packets(int nb_rx, struct rte_mbuf **pkts_burst,
 {
        int32_t j;
        uint16_t dst_port[MAX_PKT_BURST];
-       vector unsigned int dip[MAX_PKT_BURST / FWDSTEP];
+       __vector unsigned int dip[MAX_PKT_BURST / FWDSTEP];
        uint32_t ipv4_flag[MAX_PKT_BURST / FWDSTEP];
        const int32_t k = RTE_ALIGN_FLOOR(nb_rx, FWDSTEP);