IB/core: Add flow spec tunneling support
authorMoses Reuben <mosesr@mellanox.com>
Mon, 14 Nov 2016 17:04:47 +0000 (19:04 +0200)
committerDoug Ledford <dledford@redhat.com>
Tue, 13 Dec 2016 18:34:21 +0000 (13:34 -0500)
commit0dbf3332b7b683db33a385a3ce9baab157e3ff9a
tree813d1db158955a3322c6abc522789a853fb12786
parent1cbe6fc86ccfe05a910be4883da7c7bd28c190fe
IB/core: Add flow spec tunneling support

In order to support tunneling, that can be used by the QP,
both struct ib_flow_spec_tunnel and struct ib_flow_tunnel_filter can be
used to more IP or UDP based tunneling protocols (e.g NVGRE, GRE, etc).

IB_FLOW_SPEC_VXLAN_TUNNEL type flow specification is added to use this
functionality and match specific Vxlan packets.

In similar to IPv6, we check overflow of the vni value by
comparing with the maximum size.

Signed-off-by: Moses Reuben <mosesr@mellanox.com>
Reviewed-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/uverbs_cmd.c
include/rdma/ib_verbs.h