]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: limit the number of receive queues
authorBert Kenward <bkenward@solarflare.com>
Wed, 12 Apr 2017 16:06:52 +0000 (17:06 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Apr 2017 15:01:19 +0000 (11:01 -0400)
commit63f5d325e3551724223d9b45b42c160029101f7e
tree1a829c8abc89357c0b91cc73942350eeec6a53c9
parentd4158fe8255c9461b746befdaca9042b35946842
sfc: limit the number of receive queues

The number of rx queues is determined by the rss_cpus parameter
or the cpu topology. If that is higher than EFX_MAX_RX_QUEUES the
driver can corrupt state.

Fixes: 4ff646c3b7db ("New driver "sfc" for Solarstorm SFC4000 controller.")
Signed-off-by: Bert Kenward <bkenward@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/efx.c
drivers/net/ethernet/sfc/falcon/efx.c