]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
net: atlantic: proper rss_ctrl1 (54c0) initialization
authorMark Starovoytov <mstarovoitov@marvell.com>
Fri, 22 May 2020 08:19:48 +0000 (11:19 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 May 2020 21:08:29 +0000 (14:08 -0700)
commit40f05e5b0d0e6ed5cc868cd09fa976495716b8f9
tree25315f1a3ef14bdbbedb8c1d1579ba114875c4e7
parent2deac71ac492a6025b163701436e0aa39435a05f
net: atlantic: proper rss_ctrl1 (54c0) initialization

This patch fixes an inconsistency between code and spec, which
was found while working on the QoS implementation.

When 8TCs are used, 2 is the maximum supported number of index bits.
In a 4TC mode, we do support 3, but we shouldn't really use the bytes,
which are intended for the 8TC mode.

Signed-off-by: Mark Starovoytov <mstarovoitov@marvell.com>
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.h
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0_internal.h
drivers/net/ethernet/aquantia/atlantic/hw_atl2/hw_atl2.c
drivers/net/ethernet/aquantia/atlantic/hw_atl2/hw_atl2_internal.h