From: Gowrishankar Muthukrishnan Date: Thu, 20 Apr 2017 07:39:18 +0000 (+0530) Subject: net/i40e: fix build on ppc64le X-Git-Tag: spdx-start~3479 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e4701c7a4eec9367819da0ea4ed8572310fe0832;p=dpdk.git net/i40e: fix build on ppc64le A typo introduced in i40e_rxtx_vec_altivec.c Fixes: 67f038076657 ("net/i40e: enable per-device packet type mapping") Signed-off-by: Gowrishankar Muthukrishnan --- diff --git a/drivers/net/i40e/i40e_rxtx_vec_altivec.c b/drivers/net/i40e/i40e_rxtx_vec_altivec.c index 07de31b01e..f4036ea287 100644 --- a/drivers/net/i40e/i40e_rxtx_vec_altivec.c +++ b/drivers/net/i40e/i40e_rxtx_vec_altivec.c @@ -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: