]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf7f9e3a6e1821f0e93d62eb3cbb9cf21710081b9
tree813d1db158955a3322c6abc522789a853fb12786
parentd62b55133a083abd7f4289afda5fd05ca7e66d83
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