[dpdk-dev] [PATCH 9/9] net/hns3: remove the unused macros

Wei Hu (Xavier) xavier.huwei at tom.com
Mon Dec 2 03:51:26 CET 2019


From: Hao Chen <chenhao164 at huawei.com>

This patch removed some unused macros defined in hns3_rss.h,
these macros are used to set tuples for abandoned RTE_ETH_FILTER_HASH
in hns3_dev_filter_ctrl().

Signed-off-by: Hao Chen <chenhao164 at huawei.com>
Signed-off-by: Wei Hu (Xavier) <xavier.huwei at huawei.com>
---
 drivers/net/hns3/hns3_rss.h | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/drivers/net/hns3/hns3_rss.h b/drivers/net/hns3/hns3_rss.h
index 7ffc15131..725970f89 100644
--- a/drivers/net/hns3/hns3_rss.h
+++ b/drivers/net/hns3/hns3_rss.h
@@ -27,7 +27,6 @@
 
 #define HNS3_RSS_HASH_ALGO_TOEPLITZ	0
 #define HNS3_RSS_HASH_ALGO_SIMPLE	1
-#define HNS3_RSS_HASH_ALGO_SYMMETRIC	2
 #define HNS3_RSS_HASH_ALGO_MASK		0xf
 
 #define HNS3_RSS_INPUT_TUPLE_OTHER	GENMASK(3, 0)
@@ -56,15 +55,6 @@ struct hns3_rss_conf {
 	uint16_t queue[HNS3_RSS_QUEUES_BUFFER_NUM]; /* Queues indices to use */
 };
 
-/* Bit 8 ~Bit 15 */
-#define HNS3_INSET_IPV4_SRC        0x00000100UL
-#define HNS3_INSET_IPV4_DST        0x00000200UL
-#define HNS3_INSET_IPV6_SRC        0x00000400UL
-#define HNS3_INSET_IPV6_DST        0x00000800UL
-#define HNS3_INSET_SRC_PORT        0x00001000UL
-#define HNS3_INSET_DST_PORT        0x00002000UL
-#define HNS3_INSET_SCTP_VT         0x00004000UL
-
 #ifndef ilog2
 static inline int rss_ilog2(uint32_t x)
 {
-- 
2.23.0



More information about the dev mailing list