Tested-by: Xiao, QimaiX <[email protected]> Regards, Xiao Qimai
> -----Original Message----- > From: dev [mailto:[email protected]] On Behalf Of Junyu Jiang > Sent: Wednesday, April 29, 2020 3:25 PM > To: [email protected] > Cc: Yang, Qiming <[email protected]>; Jiang, JunyuX > <[email protected]>; [email protected] > Subject: [dpdk-dev] [PATCH] net/ice: fix core dumped issue in switch filter > > The number of queues in queue group should be checked before using it to > avoid NULL pointer. This patch fixed the issue. > > Fixes: 47d460d63233 ("net/ice: rework switch filter") > Cc: [email protected] > > Signed-off-by: Junyu Jiang <[email protected]> > --- > drivers/net/ice/ice_switch_filter.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/net/ice/ice_switch_filter.c > b/drivers/net/ice/ice_switch_filter.c > index 179430136..c2762e331 100644 > --- a/drivers/net/ice/ice_switch_filter.c > +++ b/drivers/net/ice/ice_switch_filter.c > @@ -1296,6 +1296,8 @@ ice_switch_parse_action(struct ice_pf *pf, > switch (action_type) { > case RTE_FLOW_ACTION_TYPE_RSS: > act_qgrop = action->conf; > + if (act_qgrop->queue_num <= 1) > + goto error; > rule_info->sw_act.fltr_act = > ICE_FWD_TO_QGRP; > rule_info->sw_act.fwd_id.q_id = > -- > 2.17.1

