From: Ong Boon Leong Date: Wed, 21 Apr 2021 08:46:06 +0000 (+0800) Subject: stmmac: intel: set TSO/TBS TX Queues default settings X-Git-Tag: accepted/tizen/unified/20230118.172025~7335^2~73 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=17cb00704c217d88a93791c914a01904e685b499;p=platform%2Fkernel%2Flinux-rpi.git stmmac: intel: set TSO/TBS TX Queues default settings TSO and TBS cannot coexist, for now we set Intel mGbE controller to use below TX Queue mapping: TxQ0 uses TSO and the rest of TXQs supports TBS. Signed-off-by: Ong Boon Leong Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c index bd662aa..4bd038a 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c @@ -447,6 +447,9 @@ static int intel_mgbe_common_data(struct pci_dev *pdev, /* Disable Priority config by default */ plat->tx_queues_cfg[i].use_prio = false; + /* Default TX Q0 to use TSO and rest TXQ for TBS */ + if (i > 0) + plat->tx_queues_cfg[i].tbs_en = 1; } /* FIFO size is 4096 bytes for 1 tx/rx queue */