]> git.droids-corp.org - dpdk.git/commitdiff
net/mlx5: fix SW parser enabling
authorXueming Li <xuemingl@mellanox.com>
Wed, 9 May 2018 00:14:51 +0000 (08:14 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 14 May 2018 21:31:49 +0000 (22:31 +0100)
Fixes: 5f8ba81c4228 ("net/mlx5: support generic tunnel offloading")
Signed-off-by: Xueming Li <xuemingl@mellanox.com>
Acked-by: Yongseok Koh <yskoh@mellanox.com>
drivers/net/mlx5/mlx5_ethdev.c
drivers/net/mlx5/mlx5_txq.c

index 3fad199a602ab0ca5e03d0783df190d3652d413e..271d94a5b85e0a170be4b2e5c9e561eebc3e4ada 100644 (file)
@@ -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));
index 44358744d6d16c08c170ebd354f0c044e5874140..19c883d7de66c4652bedecef11ae2aea47df48b5 100644 (file)
@@ -773,7 +773,8 @@ txq_set_params(struct mlx5_txq_ctrl *txq_ctrl)
        }
        txq_ctrl->txq.tunnel_en = config->tunnel_en;
        txq_ctrl->txq.swp_en = ((DEV_TX_OFFLOAD_IP_TNL_TSO |
-                                DEV_TX_OFFLOAD_UDP_TNL_TSO) &
+                                DEV_TX_OFFLOAD_UDP_TNL_TSO |
+                                DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM) &
                                txq_ctrl->txq.offloads) && config->swp;
 }