net/sfc: make Tx free threshold check datapath specific
authorAndrew Rybchenko <arybchenko@solarflare.com>
Tue, 9 Jan 2018 20:24:51 +0000 (20:24 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commit420efecb54e73d611c05d4949daddaf7dc16a906
treeb932f5839f08c59afe6593255023f34cf3659cf6
parentf7da270aeabad95e0d267481f0561aee6b041666
net/sfc: make Tx free threshold check datapath specific

EFX_TXQ_LIMIT is libefx-specifics and it should not be used
for other Tx datapaths implementations (e.g. EF10 native).

EF10 native Tx datapath has its own understanding of the maximum
TxQ fill level imposed by EvQ clear strategy and space reserved
for Tx error and flush events.

Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Reviewed-by: Andy Moreton <amoreton@solarflare.com>
drivers/net/sfc/sfc_dp_tx.h
drivers/net/sfc/sfc_ef10_tx.c
drivers/net/sfc/sfc_tx.c