[dpdk-stable] [patch v1] net/i40e: fix the compile issue

Ferruh Yigit ferruh.yigit at intel.com
Tue Apr 21 13:56:07 CEST 2020


On 4/21/2020 12:06 PM, Raslan Darawsheh wrote:
> Hi,
> 
>> -----Original Message-----
>> From: Ferruh Yigit <ferruh.yigit at intel.com>
>> Sent: Tuesday, April 21, 2020 12:51 PM
>> To: Gavin Hu <gavin.hu at arm.com>; Raslan Darawsheh
>> <rasland at mellanox.com>
>> Cc: dev at dpdk.org; xiaolong.ye at intel.com; david.marchand at redhat.com;
>> Thomas Monjalon <thomas at monjalon.net>;
>> Honnappa.Nagarahalli at arm.com; Ruifeng.Wang at arm.com;
>> Phil.Yang at arm.com; Joyce.Kong at arm.com; stable at dpdk.org
>> Subject: Re: [patch v1] net/i40e: fix the compile issue
>>
>> On 4/21/2020 10:49 AM, Gavin Hu wrote:
>>> Using gcc version 4.8.5 20150623 (Red Hat 4.8.5-28), it reports the
>>> following compiling error:
>>>
>>> /download/dpdk/drivers/net/i40e/i40e_rxtx_vec_neon.c:175:65: error:
>>> expected ';', ',' or ')' before 'rx_pkts' desc_to_ptype_v(uint64x2_t
>>> descs[4], struct rte_mbuf **restrict rx_pkts, ^
>>> /download/dpdk/drivers/net/i40e/i40e_rxtx_vec_neon.c:197:51: error:
>>> expected ';', ',' or ')' before 'rxq' _recv_raw_pkts_vec(struct
>>> i40e_rx_queue *restrict rxq, struct rte_mbuf ^
>>> /download/dpdk/drivers/net/i40e/i40e_rxtx_vec_neon.c:435:35: error:
>>> expected ';', ',' or ')' before 'rx_queue' i40e_recv_pkts_vec(void
>>> *restrict rx_queue, struct rte_mbuf **restrict rx_pkts,
>>>
>>> Fix this by using '__restrict' type qualifier, which compiles ok with
>>> old and new versions of gcc.
>>>
>>> Fixes: 8499b1748f26 ("net/i40e: restrict pointer aliasing for NEON")
>>> Cc: stable at dpdk.org
>>>
>>> Signed-off-by: Gavin Hu <gavin.hu at arm.com>
> Tested-by: Raslan Darawsheh <rasland at mellanox.com>
>>
>> Thanks Gavin.
>>
>> Raslan can you please test the patch since you can reproduce the issue?
>>
>> Thanks,
>> ferruh
> 
> Just verified it's working just fine with this fix, thanks for that.
> 

Squashed into relevant commit in next-net, thanks.



More information about the stable mailing list