[dpdk-dev] [PATCH] i40e: fix the issue reported by klocwork

2015-04-01 Thread Thomas Monjalon
> > Klocwork reports array 'src_offset' may use index 16. > > In function i40e_srcoff_to_flx_pit, index j + 1 can reach > > I40E_FDIR_MAX_FLEX_LEN. > > This patch fixes this issue to avoid array bound. > > > > Signed-off-by: Jingjing Wu > Acked-by: Helin Zhang Fixes: d8b90c4eabe9 ("i40e: take f

[dpdk-dev] [PATCH] i40e: fix the issue reported by klocwork

2015-04-01 Thread Zhang, Helin
age- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Tuesday, March 31, 2015 6:28 PM > To: Zhang, Helin > Cc: dev at dpdk.org; Wu, Jingjing > Subject: Re: [dpdk-dev] [PATCH] i40e: fix the issue reported by klocwork > > Hi Helin, > > > > Klocwor

[dpdk-dev] [PATCH] i40e: fix the issue reported by klocwork

2015-03-31 Thread Thomas Monjalon
Hi Helin, > > Klocwork reports array 'src_offset' may use index 16. > > In function i40e_srcoff_to_flx_pit, index j + 1 can reach > > I40E_FDIR_MAX_FLEX_LEN. > > This patch fixes this issue to avoid array bound. > > > > Signed-off-by: Jingjing Wu > Acked-by: Helin Zhang Please confirm it's a r

[dpdk-dev] [PATCH] i40e: fix the issue reported by klocwork

2015-03-31 Thread Cao, Min
Tested-by: Min Cao Patch name: [dpdk-dev] [PATCH] i40e: fix the issue reported by klocwork Test Flag: Tested-by Tester name:min.cao at intel.com Result summary: total 2 cases, 2passed, 0 failed Test Case 1: Name

[dpdk-dev] [PATCH] i40e: fix the issue reported by klocwork

2015-03-31 Thread Zhang, Helin
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Jingjing Wu > Sent: Thursday, February 12, 2015 7:22 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH] i40e: fix the issue reported by klocwork > > Klocwork reports array 'sr

[dpdk-dev] [PATCH] i40e: fix the issue reported by klocwork

2015-03-30 Thread Thomas Monjalon
Helin, is this patch valid and important? 2015-02-12 19:22, Jingjing Wu: > Klocwork reports array 'src_offset' may use index 16. > In function i40e_srcoff_to_flx_pit, index j + 1 can reach > I40E_FDIR_MAX_FLEX_LEN. > This patch fixes this issue to avoid array bound. > > Signed-off-by: Jingjing W

[dpdk-dev] [PATCH] i40e: fix the issue reported by klocwork

2015-02-12 Thread Jingjing Wu
Klocwork reports array 'src_offset' may use index 16. In function i40e_srcoff_to_flx_pit, index j + 1 can reach I40E_FDIR_MAX_FLEX_LEN. This patch fixes this issue to avoid array bound. Signed-off-by: Jingjing Wu --- lib/librte_pmd_i40e/i40e_fdir.c | 35 +-- 1 fi