On Tue, 2 Feb 2021 20:39:48 +0800 Huazhong Tan wrote:
struct hclgevf_rss_cfg {
- u8 rss_hash_key[HCLGEVF_RSS_KEY_SIZE]; /* user configured hash keys */
+ /* user configured hash keys */
+ u8 rss_hash_key[HCLGEVF_RSS_KEY_SIZE_MAX];
u32 hash_algo;
u32 rss_size;
u8 hw_tc_map;
- u8 rss_indirection_tbl[HCLGEVF_RSS_IND_TBL_SIZE]; /* shadow table */
+ /* shadow table */
+ u8 rss_indirection_tbl[HCLGEVF_RSS_IND_TBL_SIZE_MAX];
struct hclgevf_rss_tuple_cfg rss_tuple_sets;
};
What if the table sizes supported by the device grow beyond the
.._SIZE_MAX constants? Are you handling that case?