From: Wenjun Wu Date: Tue, 13 Jul 2021 01:51:04 +0000 (+0800) Subject: net/ice/base: revert change of first profile mask X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=0a37b22875d67f37a561012e30456ad51bd79061;p=dpdk.git net/ice/base: revert change of first profile mask Segmentation fault mentioned in below commit is related to other root cause under investigation. This reverts patch below since it may have potential risk and side effect if the first profile mask is set to 0. Fixes: 148fdf2d3537 ("net/ice/base: fix first profile mask") Cc: stable@dpdk.org Signed-off-by: Wenjun Wu Acked-by: Qi Zhang --- diff --git a/drivers/net/ice/base/ice_flex_pipe.c b/drivers/net/ice/base/ice_flex_pipe.c index 829d88bba6..b3cea731f3 100644 --- a/drivers/net/ice/base/ice_flex_pipe.c +++ b/drivers/net/ice/base/ice_flex_pipe.c @@ -3432,7 +3432,7 @@ static void ice_init_prof_masks(struct ice_hw *hw, enum ice_block blk) per_pf = ICE_PROF_MASK_COUNT / hw->dev_caps.num_funcs; hw->blk[blk].masks.count = per_pf; - hw->blk[blk].masks.first = 0; + hw->blk[blk].masks.first = hw->pf_id * per_pf; ice_memset(hw->blk[blk].masks.masks, 0, sizeof(hw->blk[blk].masks.masks), ICE_NONDMA_MEM);