From 228df3edb1d824436e1f7d7d57117f6c5e1e706b Mon Sep 17 00:00:00 2001 From: Yahui Cao Date: Tue, 5 Nov 2019 21:37:21 +0800 Subject: [PATCH] net/ice: fix flow director tunnel profile existence check 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: 109e8e06249e ("net/ice: configure HW flow director rule") Signed-off-by: Yahui Cao Acked-by: Qi Zhang --- 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 fbbc41ff03..6052bed516 100644 --- a/drivers/net/ice/ice_fdir_filter.c +++ b/drivers/net/ice/ice_fdir_filter.c @@ -634,7 +634,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.20.1