From 0e4949639ba4e915e7b799f7764b83e124e73669 Mon Sep 17 00:00:00 2001 From: Congwen Zhang Date: Wed, 7 Aug 2019 16:31:45 +0800 Subject: [PATCH] net/e1000: fix zeroing of RSS config The type of rss_conf is struct igb_rte_flow_rss_conf *, not struct rte_eth_rss_conf *. Fixes: 424ae915baf0 ("net/e1000: move RSS to flow API") Cc: stable@dpdk.org Signed-off-by: Congwen Zhang Reviewed-by: Xiaolong Ye --- drivers/net/e1000/igb_flow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/e1000/igb_flow.c b/drivers/net/e1000/igb_flow.c index 31ca9bb1c3..43fef889b5 100644 --- a/drivers/net/e1000/igb_flow.c +++ b/drivers/net/e1000/igb_flow.c @@ -1381,7 +1381,7 @@ igb_parse_rss_filter(struct rte_eth_dev *dev, index++; NEXT_ITEM_OF_ACTION(act, actions, index); if (act->type != RTE_FLOW_ACTION_TYPE_END) { - memset(rss_conf, 0, sizeof(struct rte_eth_rss_conf)); + memset(rss_conf, 0, sizeof(struct igb_rte_flow_rss_conf)); rte_flow_error_set(error, EINVAL, RTE_FLOW_ERROR_TYPE_ACTION, act, "Not supported action."); -- 2.20.1