]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: allocate channels for XDP tx queues
authorCharles McLachlan <cmclachlan@solarflare.com>
Thu, 31 Oct 2019 10:23:49 +0000 (10:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 Oct 2019 21:14:53 +0000 (14:14 -0700)
commit2e6b0faad9d7678cdb0477d2e6ecc5292f058aae
tree35ca22547cac256496e40fd7c4e3d725fe056ad7
parent617bc34fab798f5b7e7b224192918f9e8f9b0b6d
sfc: allocate channels for XDP tx queues

Each CPU needs access to its own queue to allow uncontested
transmission of XDP_TX packets. This means we need to allocate (up
front) enough channels ("xdp transmit channels") to provide at least
one extra tx queue per CPU. These tx queues should not do TSO.

Signed-off-by: Charles McLachlan <cmclachlan@solarflare.com>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/ef10.c
drivers/net/ethernet/sfc/efx.c
drivers/net/ethernet/sfc/net_driver.h
drivers/net/ethernet/sfc/tx.c