From: Hao Chen Date: Sat, 21 Dec 2019 10:32:53 +0000 (+0800) Subject: net/hns3: remove unused constants X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=37c7ed126443e470e6994cc6f50898c740ceb097;p=dpdk.git net/hns3: remove unused constants 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 Signed-off-by: Wei Hu (Xavier) --- diff --git a/drivers/net/hns3/hns3_rss.h b/drivers/net/hns3/hns3_rss.h index 7ffc151314..725970f891 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) {