DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/ice: fix core dumped issue in switch filter
@ 2020-04-29  7:25 Junyu Jiang
  2020-04-30  6:52 ` Yang, Qiming
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Junyu Jiang @ 2020-04-29  7:25 UTC (permalink / raw)
  To: dev; +Cc: Qiming Yang, Junyu Jiang, stable

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: stable@dpdk.org

Signed-off-by: Junyu Jiang <junyux.jiang@intel.com>
---
 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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-05-20  9:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-29  7:25 [dpdk-dev] [PATCH] net/ice: fix core dumped issue in switch filter Junyu Jiang
2020-04-30  6:52 ` Yang, Qiming
2020-04-30  7:42   ` Jiang, JunyuX
2020-04-30  9:09 ` Xiao, QimaiX
2020-05-06  3:05 ` [dpdk-dev] [PATCH v2] " Junyu Jiang
2020-05-06  6:30   ` Yang, Qiming
2020-05-06  8:57   ` [dpdk-dev] [dpdk-stable] " Ye Xiaolong
2020-05-20  9:31   ` [dpdk-dev] " Zhao1, Wei
2020-05-20  9:32     ` Zhao1, Wei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).