OSDN Git Service

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)
commit3990a8fffbdad5765f47ea593f9de66c91762059
tree35ca22547cac256496e40fd7c4e3d725fe056ad7
parente45a4fed9d006480a5cc2312d5d4f7988a3a655e
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