]> 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)
commitade97df951d343d138497a6159b55ed17974e1c0
tree813d1db158955a3322c6abc522789a853fb12786
parent79866e52fc8b550f49ee0ca25797787e24641af2
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