Update DPDK version from 19.11 to 20.11 and also support hns3 PMD for Kunpeng 920 and Kunpeng 930. Signed-off-by: speech_white <humin29@huawei.com>
36 lines
1.2 KiB
Diff
36 lines
1.2 KiB
Diff
From 72f412363f33c14750b3d5250315f67a06259033 Mon Sep 17 00:00:00 2001
|
|
From: Chengwen Feng <fengchengwen@huawei.com>
|
|
Date: Fri, 7 May 2021 17:08:16 +0800
|
|
Subject: [PATCH 158/189] net/hns3: clear hash map on flow director clear
|
|
|
|
The fdir hash map hold the pointers of fdir rule elements, it needs to
|
|
be set to NULL when clear all fdir rules.
|
|
|
|
Fixes: fcba820d9b9e ("net/hns3: support flow director")
|
|
Cc: stable@dpdk.org
|
|
|
|
Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
|
|
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
|
|
---
|
|
drivers/net/hns3/hns3_fdir.c | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/drivers/net/hns3/hns3_fdir.c b/drivers/net/hns3/hns3_fdir.c
|
|
index e87e064..8ab5fd6 100644
|
|
--- a/drivers/net/hns3/hns3_fdir.c
|
|
+++ b/drivers/net/hns3/hns3_fdir.c
|
|
@@ -1033,6 +1033,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);
|
|
--
|
|
2.7.4
|
|
|