summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_devx_cmds.c
diff options
context:
space:
mode:
authorMoti Haimovsky <motih@mellanox.com>2019-10-16 11:36:10 +0300
committerFerruh Yigit <ferruh.yigit@intel.com>2019-10-20 15:43:28 +0100
commit398b0cdcd3fc0de06b374a0fd8d965b6f0b9bd47 (patch)
tree8e4b625837ef9215fe470ed5b9855f0e36d2714a /drivers/net/mlx5/mlx5_devx_cmds.c
parent2cecb32162d8eb2d83083a5c583a85b43b57ed12 (diff)
downloaddpdk-next-net-intel-398b0cdcd3fc0de06b374a0fd8d965b6f0b9bd47.zip
dpdk-next-net-intel-398b0cdcd3fc0de06b374a0fd8d965b6f0b9bd47.tar.gz
dpdk-next-net-intel-398b0cdcd3fc0de06b374a0fd8d965b6f0b9bd47.tar.xz
net/mlx5: add flow match on GENEVE item
This commit adds support for matching flows on Geneve headers. Signed-off-by: Moti Haimovsky <motih@mellanox.com> Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_devx_cmds.c')
-rw-r--r--drivers/net/mlx5/mlx5_devx_cmds.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/mlx5/mlx5_devx_cmds.c b/drivers/net/mlx5/mlx5_devx_cmds.c
index 01e4094..51947d3 100644
--- a/drivers/net/mlx5/mlx5_devx_cmds.c
+++ b/drivers/net/mlx5/mlx5_devx_cmds.c
@@ -376,6 +376,12 @@ mlx5_devx_cmd_query_hca_attr(struct ibv_context *ctx,
MLX5_GET(per_protocol_networking_offload_caps, hcattr,
lro_timer_supported_periods[i]);
}
+ attr->tunnel_stateless_geneve_rx =
+ MLX5_GET(per_protocol_networking_offload_caps,
+ hcattr, tunnel_stateless_geneve_rx);
+ attr->geneve_max_opt_len =
+ MLX5_GET(per_protocol_networking_offload_caps,
+ hcattr, max_geneve_opt_len);
attr->wqe_inline_mode = MLX5_GET(per_protocol_networking_offload_caps,
hcattr, wqe_inline_mode);
if (attr->wqe_inline_mode != MLX5_CAP_INLINE_MODE_VPORT_CONTEXT)