net/mlx5: add header reformat HW steering action
[dpdk.git] / drivers / net / hns3 / hns3_fdir.c
index e116d87..2a7978a 100644 (file)
@@ -919,8 +919,7 @@ static int hns3_insert_fdir_filter(struct hns3_hw *hw,
        sig = rte_hash_crc(key, sizeof(*key), 0);
        ret = rte_hash_add_key_with_hash(fdir_info->hash_handle, key, sig);
        if (ret < 0) {
-               hns3_err(hw, "Hash table full? err:%d(%s)!", ret,
-                        strerror(-ret));
+               hns3_err(hw, "Hash table full? err:%d!", ret);
                return ret;
        }
 
@@ -1033,6 +1032,10 @@ int hns3_clear_all_fdir_filter(struct hns3_adapter *hns)
        /* flush flow director */
        rte_hash_reset(fdir_info->hash_handle);
 
+       memset(fdir_info->hash_map, 0,
+              sizeof(struct hns3_fdir_rule_ele *) *
+              fdir_info->fd_cfg.rule_num[HNS3_FD_STAGE_1]);
+
        fdir_filter = TAILQ_FIRST(&fdir_info->fdir_list);
        while (fdir_filter) {
                TAILQ_REMOVE(&fdir_info->fdir_list, fdir_filter, entries);