net/ionic: observe endianness in Rx filter
[dpdk.git] / drivers / net / hns3 / hns3_rss.c
index a4e552b..b5df374 100644 (file)
@@ -2,12 +2,9 @@
  * Copyright(c) 2018-2019 Hisilicon Limited.
  */
 
-#include <stdbool.h>
 #include <rte_ethdev.h>
 #include <rte_io.h>
 #include <rte_malloc.h>
-#include <rte_memcpy.h>
-#include <rte_spinlock.h>
 
 #include "hns3_ethdev.h"
 #include "hns3_logs.h"
@@ -636,16 +633,11 @@ hns3_set_rss_tc_mode(struct hns3_hw *hw)
 static void
 hns3_rss_tuple_uninit(struct hns3_hw *hw)
 {
-       struct hns3_rss_input_tuple_cmd *req;
        struct hns3_cmd_desc desc;
        int ret;
 
        hns3_cmd_setup_basic_desc(&desc, HNS3_OPC_RSS_INPUT_TUPLE, false);
 
-       req = (struct hns3_rss_input_tuple_cmd *)desc.data;
-
-       memset(req, 0, sizeof(struct hns3_rss_tuple_cfg));
-
        ret = hns3_cmd_send(hw, &desc, 1);
        if (ret) {
                hns3_err(hw, "RSS uninit tuple failed %d", ret);