Hi Jeff, >-----Original Message----- >From: Guo, Jia <jia....@intel.com> >Sent: Friday 9 October 2020 04:03 >To: Power, Ciara <ciara.po...@intel.com>; dev@dpdk.org >Cc: Xing, Beilei <beilei.x...@intel.com> >Subject: RE: [PATCH v3 04/18] net/i40e: add checks for max SIMD bitwidth > >Hi, power > >> -----Original Message----- >> From: Power, Ciara <ciara.po...@intel.com> >> Sent: Wednesday, September 30, 2020 9:04 PM >> To: dev@dpdk.org >> Cc: Power, Ciara <ciara.po...@intel.com>; Xing, Beilei >> <beilei.x...@intel.com>; Guo, Jia <jia....@intel.com> >> Subject: [PATCH v3 04/18] net/i40e: add checks for max SIMD bitwidth >> >> When choosing a vector path to take, an extra condition must be >> satisfied to ensure the max SIMD bitwidth allows for the CPU enabled path. >> >> Cc: Beilei Xing <beilei.x...@intel.com> >> Cc: Jeff Guo <jia....@intel.com> >> >> Signed-off-by: Ciara Power <ciara.po...@intel.com> >> --- >> drivers/net/i40e/i40e_rxtx.c | 19 +++++++++++++------ >> 1 file changed, 13 insertions(+), 6 deletions(-) >> >> diff --git a/drivers/net/i40e/i40e_rxtx.c >> b/drivers/net/i40e/i40e_rxtx.c index 60b33d20a1..9b535b52fa 100644 >> --- a/drivers/net/i40e/i40e_rxtx.c >> +++ b/drivers/net/i40e/i40e_rxtx.c >> @@ -3098,7 +3098,8 @@ static eth_rx_burst_t >> i40e_get_latest_rx_vec(bool >> scatter) { #if defined(RTE_ARCH_X86) && defined(CC_AVX2_SUPPORT) -if >> (rte_cpu_get_flag_enabled(RTE_CPUFLAG_AVX2)) >> +if (rte_cpu_get_flag_enabled(RTE_CPUFLAG_AVX2) && >> +rte_get_max_simd_bitwidth() >= > >Nitpick: I think if consistent to keep alignment for open parenthesis in this >patch set would be better. Do you think so? >
This file doesn't seem to have any if statements indented as you suggest, Some do have a double indent for the continued line as I have done here though. <snip> Thanks, Ciara