Re: [dpdk-dev] [PATCH 2/2] net/hns3: refactor SVE code compile method

2021-05-13 Thread Honnappa Nagarahalli
> >>> Currently, the SVE code is compiled only when -march supports SVE > >>> (e.g. '- march=armv8.2a+sve'), there maybe some problem[1] with this > >> approach. > >>> > >>> The solution: > >>> a. If the minimum instruction set support SVE then compiles it. > >>> b. Else if the compiler support S

Re: [dpdk-dev] [PATCH 2/2] net/hns3: refactor SVE code compile method

2021-05-13 Thread Bruce Richardson
On Wed, May 12, 2021 at 11:12:36PM +, Honnappa Nagarahalli wrote: > > > > > > Currently, the SVE code is compiled only when -march supports SVE (e.g. '- > > march=armv8.2a+sve'), there maybe some problem[1] with this approach. > > > > The solution: > > a. If the minimum instruction set supp

Re: [dpdk-dev] [PATCH 2/2] net/hns3: refactor SVE code compile method

2021-05-12 Thread fengchengwen
On 2021/5/13 7:21, Honnappa Nagarahalli wrote: > > >> >>> >>> Currently, the SVE code is compiled only when -march supports SVE >>> (e.g. '- march=armv8.2a+sve'), there maybe some problem[1] with this >> approach. >>> >>> The solution: >>> a. If the minimum instruction set support SVE then com

Re: [dpdk-dev] [PATCH 2/2] net/hns3: refactor SVE code compile method

2021-05-12 Thread Honnappa Nagarahalli
> > > > > Currently, the SVE code is compiled only when -march supports SVE > > (e.g. '- march=armv8.2a+sve'), there maybe some problem[1] with this > approach. > > > > The solution: > > a. If the minimum instruction set support SVE then compiles it. > > b. Else if the compiler support SVE then

Re: [dpdk-dev] [PATCH 2/2] net/hns3: refactor SVE code compile method

2021-05-12 Thread Honnappa Nagarahalli
> > Currently, the SVE code is compiled only when -march supports SVE (e.g. '- > march=armv8.2a+sve'), there maybe some problem[1] with this approach. > > The solution: > a. If the minimum instruction set support SVE then compiles it. > b. Else if the compiler support SVE then compiles it. > c.

[dpdk-dev] [PATCH 2/2] net/hns3: refactor SVE code compile method

2021-05-12 Thread Chengwen Feng
Currently, the SVE code is compiled only when -march supports SVE (e.g. '-march=armv8.2a+sve'), there maybe some problem[1] with this approach. The solution: a. If the minimum instruction set support SVE then compiles it. b. Else if the compiler support SVE then compiles it. c. Otherwise don't com