net/ice/base: fix first profile mask
authorWenjun Wu <wenjun1.wu@intel.com>
Mon, 21 Jun 2021 08:59:23 +0000 (16:59 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Sun, 4 Jul 2021 14:57:21 +0000 (16:57 +0200)
commit148fdf2d3537cfbb912e9c619ace7205741d9a25
tree64aaa2041f20eac068211a7f1946473769ebfb69
parentef5d24fbfb235d82d9b824b81eedc33f0f092f62
net/ice/base: fix first profile mask

Since each PF does not share the same structure space, the first
mask value should start at 0 instead of hw->pf_id * per_pf to avoid
address overflow. Otherwise, address space will overlap when
masks.first + masks.count > ICE_PROF_MASK_COUNT, and it may lead to
unexpected variable assignment, which causes segmentation fault.

Fixes: 9467486f179f ("net/ice/base: enable masking for RSS and FD field vectors")
Cc: stable@dpdk.org
Signed-off-by: Wenjun Wu <wenjun1.wu@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/base/ice_flex_pipe.c