summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_txq.c
diff options
context:
space:
mode:
authorShahaf Shuler <shahafs@mellanox.com>2018-03-15 13:00:05 +0200
committerFerruh Yigit <ferruh.yigit@intel.com>2018-03-30 14:08:44 +0200
commitb7059e6e436852c1d8be241970c042dd182ff63d (patch)
tree42ffdbd7eebcadefad7c4aff29d99468ddddf185 /drivers/net/mlx5/mlx5_txq.c
parentbf3d3ecc34c79946aa9f98593bf1496a1e81709f (diff)
downloaddpdk-next-eventdev-b7059e6e436852c1d8be241970c042dd182ff63d.zip
dpdk-next-eventdev-b7059e6e436852c1d8be241970c042dd182ff63d.tar.gz
dpdk-next-eventdev-b7059e6e436852c1d8be241970c042dd182ff63d.tar.xz
net/mlx5: fix TSO enablement
TSO should be set if either of the TSO offload flags is requested. Fixes: dbccb4cddcd2 ("net/mlx5: convert to new Tx offloads API") Cc: stable@dpdk.org Signed-off-by: Shahaf Shuler <shahafs@mellanox.com> Acked-by: Yongseok Koh <yskoh@mellanox.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_txq.c')
-rw-r--r--drivers/net/mlx5/mlx5_txq.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/mlx5/mlx5_txq.c b/drivers/net/mlx5/mlx5_txq.c
index 7ee7dda..9139429 100644
--- a/drivers/net/mlx5/mlx5_txq.c
+++ b/drivers/net/mlx5/mlx5_txq.c
@@ -684,7 +684,9 @@ txq_set_params(struct mlx5_txq_ctrl *txq_ctrl)
eth_tx_burst_t tx_pkt_burst =
mlx5_select_tx_function(txq_ctrl->priv->dev);
int is_empw_func = is_empw_burst_func(tx_pkt_burst);
- int tso = !!(txq_ctrl->txq.offloads & DEV_TX_OFFLOAD_TCP_TSO);
+ int tso = !!(txq_ctrl->txq.offloads & (DEV_TX_OFFLOAD_TCP_TSO |
+ DEV_TX_OFFLOAD_VXLAN_TNL_TSO |
+ DEV_TX_OFFLOAD_GRE_TNL_TSO));
txq_inline = (config->txq_inline == MLX5_ARG_UNSET) ?
0 : config->txq_inline;