[dpdk-dev] [PATCH v2] net/ice: fix FDIR tunnel profile existence check

Ye Xiaolong xiaolong.ye at intel.com
Thu Nov 7 08:49:49 CET 2019


On 11/05, Yahui Cao wrote:
>If first rule is issued and then the second rule is issued with the same
>input set as first rule's, FDIR driver can't find there is an identical
>input set.
>
>Fixes: d5ea22e9f4a5 ("net/ice: configure HW FDIR rule")
>Cc: beilei.xing at intel.com
>
>Signed-off-by: Yahui Cao <yahui.cao at intel.com>
>---
> drivers/net/ice/ice_fdir_filter.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/drivers/net/ice/ice_fdir_filter.c b/drivers/net/ice/ice_fdir_filter.c
>index 736ccd54e..685383c1a 100644
>--- a/drivers/net/ice/ice_fdir_filter.c
>+++ b/drivers/net/ice/ice_fdir_filter.c
>@@ -646,7 +646,7 @@ ice_fdir_hw_tbl_conf(struct ice_pf *pf, struct ice_vsi *vsi,
> 			if (!memcmp(ori_seg, seg, sizeof(*seg)))
> 				return -EAGAIN;
> 		} else {
>-			if (!memcmp(ori_seg, &seg[1], sizeof(*seg)))
>+			if (!memcmp(&ori_seg[1], &seg[1], sizeof(*seg)))
> 				return -EAGAIN;
> 		}
> 
>-- 
>2.17.1
>

Applied to dpdk-next-net-intel. Thanks.


More information about the dev mailing list