net/txgbe: fix memset type error
PATCH 1/1 net/txgbe: fix memset type error
From: HongBo Zheng <[email protected]>
Fix memset type error in function txgbe_parse_rss_filter while clear rss_conf buffer.
Fixes 7a6d87fb8398 ("net/txgbe: parse RSS filter")
Signed-off-by HongBo Zheng <[email protected]>
Signed-off-by Min Hu (Connor) <[email protected]>
--- drivers/net/txgbe/txgbe_flow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/txgbe/txgbe_flow.c +1 -1
@@ -2537,7 +2537,7 @@ txgbe_parse_rss_filter(struct rte_eth_dev *dev,/* check if the next not void item is END */ act =next_no_void_action (actions, act);if (act->type !=RTE_FLOW_ACTION_TYPE_END ) { -memset (rss_conf,0 ,sizeof (struct rte_eth_rss_conf )); +memset (rss_conf,0 ,sizeof (struct txgbe_rte_flow_rss_conf ));rte_flow_error_set (error,EINVAL ,RTE_FLOW_ERROR_TYPE_ACTION , act,"Not supported action." );
Signature · 1 line
2.7.4
Quoted 10 lines · Min Hu (Connor)
From: HongBo Zheng <[email protected]>
Fix memset type error in function
txgbe_parse_rss_filterwhile clearrss_confbuffer.Fixes 7a6d87fb8398 ("net/txgbe: parse RSS filter")Signed-off-by HongBo Zheng <[email protected]>Signed-off-by Min Hu (Connor) <[email protected]>
Reviewed-by Ferruh Yigit <[email protected]>
Applied to dpdk-next-net/main, thanks.