X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fi40e%2Fi40e_rxtx_vec_altivec.c;h=5e4e472a3a0a69fae8251703de56c45ee61bf988;hb=9bc2cbb007c0a3335c5582357ae9f6d37ea0b654;hp=07de31b01eb2a92cad2f7dc80ff9433582c89539;hpb=67f0380766573ed2378da87e02b5b893dc1ccc9e;p=dpdk.git diff --git a/drivers/net/i40e/i40e_rxtx_vec_altivec.c b/drivers/net/i40e/i40e_rxtx_vec_altivec.c index 07de31b01e..5e4e472a3a 100644 --- a/drivers/net/i40e/i40e_rxtx_vec_altivec.c +++ b/drivers/net/i40e/i40e_rxtx_vec_altivec.c @@ -100,7 +100,7 @@ i40e_rxq_rearm(struct i40e_rx_queue *rxq) p1 = (uintptr_t)&mb1->rearm_data; *(uint64_t *)p1 = rxq->mbuf_initializer; - /* load buf_addr(lo 64bit) and buf_physaddr(hi 64bit) */ + /* load buf_addr(lo 64bit) and buf_iova(hi 64bit) */ vaddr0 = vec_ld(0, (vector unsigned long *)&mb0->buf_addr); vaddr1 = vec_ld(0, (vector unsigned long *)&mb1->buf_addr); @@ -146,7 +146,7 @@ desc_to_olflags_v(vector unsigned long descs[4], struct rte_mbuf **rx_pkts) /* map rss and vlan type to rss hash and vlan flag */ const vector unsigned char vlan_flags = (vector unsigned char){ 0, 0, 0, 0, - PKT_RX_VLAN_PKT | PKT_RX_VLAN_STRIPPED, 0, 0, 0, + PKT_RX_VLAN | PKT_RX_VLAN_STRIPPED, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; @@ -208,13 +208,13 @@ desc_to_ptype_v(vector unsigned long descs[4], struct rte_mbuf **rx_pkts, ptype1 = vec_sr(ptype1, (vector unsigned long){30, 30}); rx_pkts[0]->packet_type = - ptype_tbl[(*(vector unsigned char *)&ptype0)[0])]; + ptype_tbl[(*(vector unsigned char *)&ptype0)[0]]; rx_pkts[1]->packet_type = - ptype_tbl[(*(vector unsigned char *)&ptype0)[8])]; + ptype_tbl[(*(vector unsigned char *)&ptype0)[8]]; rx_pkts[2]->packet_type = - ptype_tbl[(*(vector unsigned char *)&ptype1)[0])]; + ptype_tbl[(*(vector unsigned char *)&ptype1)[0]]; rx_pkts[3]->packet_type = - ptype_tbl[(*(vector unsigned char *)&ptype1)[8])]; + ptype_tbl[(*(vector unsigned char *)&ptype1)[8]]; } /* Notice: @@ -538,7 +538,7 @@ vtx1(volatile struct i40e_tx_desc *txdp, ((uint64_t)pkt->data_len << I40E_TXD_QW1_TX_BUF_SZ_SHIFT)); vector unsigned long descriptor = (vector unsigned long){ - pkt->buf_physaddr + pkt->data_off, high_qw}; + pkt->buf_iova + pkt->data_off, high_qw}; *(vector unsigned long *)txdp = descriptor; }