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:
parent
14c4647517
commit
228df3edb1
@ -634,7 +634,7 @@ ice_fdir_hw_tbl_conf(struct ice_pf *pf, struct ice_vsi *vsi,
|
|||||||
if (!memcmp(ori_seg, seg, sizeof(*seg)))
|
if (!memcmp(ori_seg, seg, sizeof(*seg)))
|
||||||
return -EAGAIN;
|
return -EAGAIN;
|
||||||
} else {
|
} else {
|
||||||
if (!memcmp(ori_seg, &seg[1], sizeof(*seg)))
|
if (!memcmp(&ori_seg[1], &seg[1], sizeof(*seg)))
|
||||||
return -EAGAIN;
|
return -EAGAIN;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user