summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_ethdev.c
diff options
context:
space:
mode:
authorXueming Li <xuemingl@mellanox.com>2018-05-09 08:14:51 +0800
committerFerruh Yigit <ferruh.yigit@intel.com>2018-05-14 22:31:49 +0100
commit32d4246c90172f353c80a23fb83db9a52cce9d98 (patch)
tree7355c0d3c22da729c52aa794c5a0772a2a655d39 /drivers/net/mlx5/mlx5_ethdev.c
parent5afda2c6acf5e07c3cfca01c1ad7587d73c5af29 (diff)
downloaddpdk-32d4246c90172f353c80a23fb83db9a52cce9d98.zip
dpdk-32d4246c90172f353c80a23fb83db9a52cce9d98.tar.gz
dpdk-32d4246c90172f353c80a23fb83db9a52cce9d98.tar.xz
net/mlx5: fix SW parser enabling
Fixes: 5f8ba81c4228 ("net/mlx5: support generic tunnel offloading") Signed-off-by: Xueming Li <xuemingl@mellanox.com> Acked-by: Yongseok Koh <yskoh@mellanox.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_ethdev.c')
-rw-r--r--drivers/net/mlx5/mlx5_ethdev.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/mlx5/mlx5_ethdev.c b/drivers/net/mlx5/mlx5_ethdev.c
index 3fad199..271d94a 100644
--- a/drivers/net/mlx5/mlx5_ethdev.c
+++ b/drivers/net/mlx5/mlx5_ethdev.c
@@ -1129,7 +1129,9 @@ mlx5_select_tx_function(struct rte_eth_dev *dev)
uint64_t tx_offloads = dev->data->dev_conf.txmode.offloads;
int tso = !!(tx_offloads & (DEV_TX_OFFLOAD_TCP_TSO |
DEV_TX_OFFLOAD_VXLAN_TNL_TSO |
- DEV_TX_OFFLOAD_GRE_TNL_TSO));
+ DEV_TX_OFFLOAD_GRE_TNL_TSO |
+ DEV_TX_OFFLOAD_IP_TNL_TSO |
+ DEV_TX_OFFLOAD_UDP_TNL_TSO));
int swp = !!(tx_offloads & (DEV_TX_OFFLOAD_IP_TNL_TSO |
DEV_TX_OFFLOAD_UDP_TNL_TSO |
DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM));