summaryrefslogtreecommitdiffstats
path: root/src/msg/async/dpdk
diff options
context:
space:
mode:
authorChunsong Feng <fengchunsong@huawei.com>2021-12-10 06:52:37 +0100
committerChunsong Feng <fengchunsong@huawei.com>2021-12-29 04:19:06 +0100
commitf84196ac0f077041020288820324089e93e112f4 (patch)
tree1eaf6b07c1422c7120ce8ff09131c608824fa850 /src/msg/async/dpdk
parentMerge pull request #44396 from cyx1231st/wip-seastore-fix-seastar-runner (diff)
downloadceph-f84196ac0f077041020288820324089e93e112f4.tar.xz
ceph-f84196ac0f077041020288820324089e93e112f4.zip
msg/async/dpdk:Add the TSO configuration
The TSO feature of some NICs(mlx5,iavf,sfc,hns3) is abnormal in DPDK-20.11. The TSO feature is fiexed in DPDK-21.11. Therefore, a configure is added for compatibility. Signed-off-by: Chunsong Feng <fengchunsong@huawei.com> Reviewed-by: luo rixin <luorixin@huawei.com> Reviewed-by: Han Fengzhe <hanfengzhe@hisilicon.com>
Diffstat (limited to 'src/msg/async/dpdk')
-rw-r--r--src/msg/async/dpdk/DPDK.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/msg/async/dpdk/DPDK.cc b/src/msg/async/dpdk/DPDK.cc
index 24a6764fb09..a10c6ec96ae 100644
--- a/src/msg/async/dpdk/DPDK.cc
+++ b/src/msg/async/dpdk/DPDK.cc
@@ -310,7 +310,10 @@ int DPDKDevice::init_port_start()
}
// TSO is supported starting from DPDK v1.8
- if (_dev_info.tx_offload_capa & DEV_TX_OFFLOAD_TCP_TSO) {
+ // TSO is abnormal in some DPDK versions (eg.dpdk-20.11-3.e18.aarch64), try
+ // disable TSO by ms_dpdk_enable_tso=false
+ if ((_dev_info.tx_offload_capa & DEV_TX_OFFLOAD_TCP_TSO) &&
+ cct->_conf.get_val<bool>("ms_dpdk_enable_tso")) {
ldout(cct, 1) << __func__ << " TSO is supported" << dendl;
_hw_features.tx_tso = 1;
}