summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuanming Mou <suanmingm@mellanox.com>2019-11-26 16:06:05 +0200
committerFerruh Yigit <ferruh.yigit@intel.com>2019-11-26 18:22:27 +0100
commit4acb96fd52e9f2a76e8c6ed3e4f2cdb2feb0f230 (patch)
tree77a382bebd7acd14e1459a3ad157999972de4c04
parent373c6114f53513e2484fafc072c8d126afdc50d6 (diff)
downloaddpdk-4acb96fd52e9f2a76e8c6ed3e4f2cdb2feb0f230.zip
dpdk-4acb96fd52e9f2a76e8c6ed3e4f2cdb2feb0f230.tar.gz
dpdk-4acb96fd52e9f2a76e8c6ed3e4f2cdb2feb0f230.tar.xz
net/mlx5: add GENEVE in tunnel offloads capabilities
GENEVE is available in tunnel offloads. Add it as the default support option. Signed-off-by: Suanming Mou <suanmingm@mellanox.com> Acked-by: Ori Kam <orika@mellanox.com>
-rw-r--r--drivers/net/mlx5/mlx5.c4
-rw-r--r--drivers/net/mlx5/mlx5_txq.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c
index 787ad00..d84a6f9 100644
--- a/drivers/net/mlx5/mlx5.c
+++ b/drivers/net/mlx5/mlx5.c
@@ -2256,7 +2256,9 @@ mlx5_dev_spawn(struct rte_device *dpdk_dev,
tunnel_en = ((dv_attr.tunnel_offloads_caps &
MLX5DV_RAW_PACKET_CAP_TUNNELED_OFFLOAD_VXLAN) &&
(dv_attr.tunnel_offloads_caps &
- MLX5DV_RAW_PACKET_CAP_TUNNELED_OFFLOAD_GRE));
+ MLX5DV_RAW_PACKET_CAP_TUNNELED_OFFLOAD_GRE) &&
+ (dv_attr.tunnel_offloads_caps &
+ MLX5DV_RAW_PACKET_CAP_TUNNELED_OFFLOAD_GENEVE));
}
DRV_LOG(DEBUG, "tunnel offloading is %ssupported",
tunnel_en ? "" : "not ");
diff --git a/drivers/net/mlx5/mlx5_txq.c b/drivers/net/mlx5/mlx5_txq.c
index 5e45748..bac4f71 100644
--- a/drivers/net/mlx5/mlx5_txq.c
+++ b/drivers/net/mlx5/mlx5_txq.c
@@ -127,7 +127,8 @@ mlx5_get_tx_port_offloads(struct rte_eth_dev *dev)
offloads |= DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM;
if (config->tso)
offloads |= (DEV_TX_OFFLOAD_VXLAN_TNL_TSO |
- DEV_TX_OFFLOAD_GRE_TNL_TSO);
+ DEV_TX_OFFLOAD_GRE_TNL_TSO |
+ DEV_TX_OFFLOAD_GENEVE_TNL_TSO);
}
return offloads;
}