Re: [dpdk-dev] [PATCH v2 1/6] lib/eal: add a common wrapper for restricted pointers

2020-07-07 Thread Joyce Kong
iacheslav Ovsiienko ; Honnappa Nagarahalli > ; Phil Yang ; > Ruifeng Wang ; dev ; nd > > Subject: Re: [dpdk-dev] [PATCH v2 1/6] lib/eal: add a common wrapper for > restricted pointers > > On Mon, Jul 6, 2020 at 9:50 AM Joyce Kong wrote: > > > > The 'restric

Re: [dpdk-dev] [PATCH v2 1/6] lib/eal: add a common wrapper for restricted pointers

2020-07-07 Thread David Marchand
On Mon, Jul 6, 2020 at 9:50 AM Joyce Kong wrote: > > The 'restrict' keyword is recognized in C99, while type qulifier > '__restrict' compiles ok in C with all language levels. This patch > is to add a wrapper defining '__rte_restrict' with 'restrict' and > '__restrict' to be supported by all compi

Re: [dpdk-dev] [PATCH v2 1/6] lib/eal: add a common wrapper for restricted pointers

2020-07-06 Thread Ruifeng Wang
> -Original Message- > From: Joyce Kong > Sent: Monday, July 6, 2020 3:49 PM > To: maxime.coque...@redhat.com; jer...@marvell.com; > zhihong.w...@intel.com; xiaolong...@intel.com; beilei.x...@intel.com; > jia@intel.com; john.mcnam...@intel.com; ma...@mellanox.com; > shah...@mellanox.

Re: [dpdk-dev] [PATCH v2 1/6] lib/eal: add a common wrapper for restricted pointers

2020-07-06 Thread Phil Yang
> -Original Message- > From: Joyce Kong > Sent: Monday, July 6, 2020 3:49 PM > To: maxime.coque...@redhat.com; jer...@marvell.com; > zhihong.w...@intel.com; xiaolong...@intel.com; beilei.x...@intel.com; > jia@intel.com; john.mcnam...@intel.com; ma...@mellanox.com; > shah...@mellanox.co

Re: [dpdk-dev] [PATCH v2 1/6] lib/eal: add a common wrapper for restricted pointers

2020-07-06 Thread Jerin Jacob
On Mon, Jul 6, 2020 at 1:19 PM Joyce Kong wrote: > > The 'restrict' keyword is recognized in C99, while type qulifier > '__restrict' compiles ok in C with all language levels. This patch > is to add a wrapper defining '__rte_restrict' with 'restrict' and > '__restrict' to be supported by all compi

[dpdk-dev] [PATCH v2 1/6] lib/eal: add a common wrapper for restricted pointers

2020-07-06 Thread Joyce Kong
The 'restrict' keyword is recognized in C99, while type qulifier '__restrict' compiles ok in C with all language levels. This patch is to add a wrapper defining '__rte_restrict' with 'restrict' and '__restrict' to be supported by all compilers. Signed-off-by: Joyce Kong --- lib/librte_eal/includ