IB/uverbs: Expose GRE flow spec to the user-kernel ABI header
authorAriel Levkovich <lariel@mellanox.com>
Sun, 13 May 2018 11:33:29 +0000 (14:33 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 17 May 2018 03:32:54 +0000 (21:32 -0600)
commit20b6563ba164efc1ae24f637cb269bb3a9eb5467
treed405356a2a17ca4e475d78eab91be06a6c4a9571
parente822ff213fe60dc539a7e2137a08b04004f8ec25
IB/uverbs: Expose GRE flow spec to the user-kernel ABI header

Add ib_uverbs_flow_spec_gre to define a rule to match the GRE
encapsulation protocol.

The spec includes the generic specs header, type, size and reserved
fields while the filter itself is defined as ib_uverbs_flow_gre_filter
and includes:
1. Checksum present bit, key present bit and version bits in a single
   16bit field.
2. Protocol type field - Indicates the ether protocol type of the
   encapsulated payload.
3. Key field - present if key bit is set and contains an application
   specific key value.

Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Ariel Levkovich <lariel@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
include/uapi/rdma/ib_user_verbs.h