From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.ru (ozlabs.ru [107.173.13.209]) by dpdk.org (Postfix) with ESMTP id 2D15C388F for ; Fri, 21 Apr 2017 05:10:14 +0200 (CEST) Received: from vpl2.ozlabs.ibm.com (localhost [IPv6:::1]) by ozlabs.ru (Postfix) with ESMTP id 4B2453A60008; Thu, 20 Apr 2017 23:10:28 -0400 (EDT) From: Alexey Kardashevskiy To: dev@dpdk.org Cc: Alexey Kardashevskiy Date: Fri, 21 Apr 2017 13:10:10 +1000 Message-Id: <20170421031010.2389-1-aik@ozlabs.ru> X-Mailer: git-send-email 2.11.0 Subject: [dpdk-dev] [PATCH dpdk] i40e/ppc64/altivec: Fix compile errors on POWER8 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Apr 2017 03:10:14 -0000 Fixes: 67f038076657 ("net/i40e: enable per-device packet type mapping") Signed-off-by: Alexey Kardashevskiy --- drivers/net/i40e/i40e_rxtx_vec_altivec.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/i40e/i40e_rxtx_vec_altivec.c b/drivers/net/i40e/i40e_rxtx_vec_altivec.c index 07de31b01..f4036ea28 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: -- 2.11.0