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: 109e8e0624 ("net/ice: configure HW flow director rule")

Signed-off-by: Yahui Cao <yahui.cao@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
This commit is contained in:
Yahui Cao 2019-11-05 21:37:21 +08:00 committed by Ferruh Yigit
parent 14c4647517
commit 228df3edb1

View File

@ -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;
}