]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: reduce the number of requested xdp ev queues
authorIvan Babrou <ivan@cloudflare.com>
Wed, 20 Jan 2021 21:27:59 +0000 (13:27 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 23 Jan 2021 03:16:45 +0000 (19:16 -0800)
commitdad6c821dff089cb00dc18a67542767bf876090a
tree4e7ac20857e1fca02a8bf5686eb6d19fe7ea05ac
parent85fe99107210e397c6a98202f60c5bd32bf3b9bc
sfc: reduce the number of requested xdp ev queues

Without this change the driver tries to allocate too many queues,
breaching the number of available msi-x interrupts on machines
with many logical cpus and default adapter settings:

Insufficient resources for 12 XDP event queues (24 other channels, max 32)

Which in turn triggers EINVAL on XDP processing:

sfc 0000:86:00.0 ext0: XDP TX failed (-22)

Signed-off-by: Ivan Babrou <ivan@cloudflare.com>
Acked-by: Edward Cree <ecree.xilinx@gmail.com>
Link: https://lore.kernel.org/r/20210120212759.81548-1-ivan@cloudflare.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/sfc/efx_channels.c