From: Yahui Cao Date: Tue, 5 Nov 2019 13:37:21 +0000 (+0800) Subject: net/ice: fix flow director tunnel profile existence check X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=228df3edb1d824436e1f7d7d57117f6c5e1e706b;p=dpdk.git 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 --- 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; }