net/txgbe: fix memset type
authorHongbo Zheng <zhenghongbo3@huawei.com>
Wed, 21 Apr 2021 03:36:09 +0000 (11:36 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 26 Apr 2021 10:37:23 +0000 (12:37 +0200)
Fix memset type error in function txgbe_parse_rss_filter
while clear rss_conf buffer.

Fixes: 7a6d87fb8398 ("net/txgbe: parse RSS filter")
Cc: stable@dpdk.org
Signed-off-by: Hongbo Zheng <zhenghongbo3@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/txgbe/txgbe_flow.c

index 57a4f2e..130e35a 100644 (file)
@@ -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.");