IB/mlx5: Add support to match inner packet fields
authorMoses Reuben <mosesr@mellanox.com>
Mon, 14 Nov 2016 17:04:52 +0000 (19:04 +0200)
committerDoug Ledford <dledford@redhat.com>
Tue, 13 Dec 2016 18:34:24 +0000 (13:34 -0500)
commit2d1e697e9b716b8a692bc9c197e5f4ffd10d7307
tree4bfd38f09dab55e8564cccec062f5209929ac89f
parentfbf46860b19ddb485f00bef1ad1a43aabc9f71ad
IB/mlx5: Add support to match inner packet fields

Add support to match packet fields which are tunneled,
i.e. support matching the header of the inner packet which is the result of
or bit operation of the original header and the IB_FLOW_SPEC_INNER type.

The combination of IB_FLOW_SPEC_INNER | IB_FLOW_SPEC_VXLAN_TUNNEL is not
needed to be checked, because the IB core has this check already.

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/hw/mlx5/main.c