Skip to content

Commit 474fb11

Browse files
logostdavem330
authored andcommitted
net: aquantia: fix RSS table and key sizes
Set RSS indirection table and RSS hash key sizes to their real size. Signed-off-by: Dmitry Bogdanov <dmitry.bogdanov@aquantia.com> Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent ef2df7f commit 474fb11

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

drivers/net/ethernet/aquantia/atlantic/aq_cfg.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
#define AQ_CFG_IS_LRO_DEF 1U
4343

4444
/* RSS */
45-
#define AQ_CFG_RSS_INDIRECTION_TABLE_MAX 128U
46-
#define AQ_CFG_RSS_HASHKEY_SIZE 320U
45+
#define AQ_CFG_RSS_INDIRECTION_TABLE_MAX 64U
46+
#define AQ_CFG_RSS_HASHKEY_SIZE 40U
4747

4848
#define AQ_CFG_IS_RSS_DEF 1U
4949
#define AQ_CFG_NUM_RSS_QUEUES_DEF AQ_CFG_VECS_DEF

drivers/net/ethernet/aquantia/atlantic/aq_nic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ static void aq_nic_rss_init(struct aq_nic_s *self, unsigned int num_rss_queues)
4444
struct aq_rss_parameters *rss_params = &cfg->aq_rss;
4545
int i = 0;
4646

47-
static u8 rss_key[40] = {
47+
static u8 rss_key[AQ_CFG_RSS_HASHKEY_SIZE] = {
4848
0x1e, 0xad, 0x71, 0x87, 0x65, 0xfc, 0x26, 0x7d,
4949
0x0d, 0x45, 0x67, 0x74, 0xcd, 0x06, 0x1a, 0x18,
5050
0xb6, 0xc1, 0xf0, 0xc7, 0xbb, 0x18, 0xbe, 0xf8,

0 commit comments

Comments
 (0)