]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: don't try to create more channels than we can have VIs
authorEdward Cree <ecree@solarflare.com>
Mon, 29 Jun 2020 13:33:44 +0000 (14:33 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Jun 2020 00:37:48 +0000 (17:37 -0700)
commit53875030b2dd33b81c3dc19c7fad87343a97e5f2
treecd02ca00c551e20f3b52536bd67ee2fe93df66ec
parente8f08256df0ad754bae3fe889cc6ffdbaa5eddea
sfc: don't try to create more channels than we can have VIs

Calculate efx->max_vis at probe time, and check against it in
 efx_allocate_msix_channels() when considering whether to create XDP TX
 channels.

Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/ef10.c
drivers/net/ethernet/sfc/efx_channels.c
drivers/net/ethernet/sfc/net_driver.h
drivers/net/ethernet/sfc/siena.c