summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/sfc/mcdi_functions.h
diff options
context:
space:
mode:
authorEdward Cree <ecree@solarflare.com>2020-09-12 01:40:03 +0300
committerDavid S. Miller <davem@davemloft.net>2020-09-12 03:15:22 +0300
commit1679c72cf48552e75a624b9c9230e2c7c18cfffc (patch)
tree0a01a45d7b955a904a17a0be7e371a3d42eefd32 /drivers/net/ethernet/sfc/mcdi_functions.h
parentfe0c4060c1b90fabfcab387dc374edde420a98d6 (diff)
downloadlinux-1679c72cf48552e75a624b9c9230e2c7c18cfffc.tar.xz
sfc: de-indirect TSO handling
Remove the tx_queue->handle_tso function pointer, and just use tx_queue->tso_version to decide which function to call, thus removing an indirect call from the fast path. Instead of passing a tso_v2 flag to efx_mcdi_tx_init(), set the desired tx_queue->tso_version before calling it. In efx_mcdi_tx_init(), report back failure to obtain a TSOv2 context by setting tx_queue->tso_version to 0, which will cause the TX path to use the GSO-based fallback. Signed-off-by: Edward Cree <ecree@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc/mcdi_functions.h')
-rw-r--r--drivers/net/ethernet/sfc/mcdi_functions.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sfc/mcdi_functions.h b/drivers/net/ethernet/sfc/mcdi_functions.h
index 687be8b00cd8..b0e2f53a0d9b 100644
--- a/drivers/net/ethernet/sfc/mcdi_functions.h
+++ b/drivers/net/ethernet/sfc/mcdi_functions.h
@@ -19,7 +19,7 @@ int efx_mcdi_ev_probe(struct efx_channel *channel);
int efx_mcdi_ev_init(struct efx_channel *channel, bool v1_cut_thru, bool v2);
void efx_mcdi_ev_remove(struct efx_channel *channel);
void efx_mcdi_ev_fini(struct efx_channel *channel);
-int efx_mcdi_tx_init(struct efx_tx_queue *tx_queue, bool tso_v2);
+int efx_mcdi_tx_init(struct efx_tx_queue *tx_queue);
void efx_mcdi_tx_remove(struct efx_tx_queue *tx_queue);
void efx_mcdi_tx_fini(struct efx_tx_queue *tx_queue);
int efx_mcdi_rx_probe(struct efx_rx_queue *rx_queue);