*/
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;
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};
}
/*
*/
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)) {
{
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);