OSDN Git Service

RDMA/mlx5: Add support for flow tag to raw create flow
authorMark Bloch <markb@mellanox.com>
Wed, 10 Oct 2018 06:55:10 +0000 (09:55 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 16 Oct 2018 06:24:45 +0000 (00:24 -0600)
commitba4a41198324be2e6fbb06c270fdc8500c0e38de
tree248e948fad5e04630bdd4db1c8636fa18fff48c4
parent645ba5970c0766c610920fd5e8dd34e62766af5a
RDMA/mlx5: Add support for flow tag to raw create flow

A user can provide a hint which will be attached to the packet and written
to the CQE on receive. This can be used as a way to offload operations
into the HW, for example parsing a packet which is a tunneled packet, and
if so, pass 0x1 as the hint. The software can use that hint to decapsulate
the packet and parse only the inner headers thus saving CPU cycles.

Signed-off-by: Mark Bloch <markb@mellanox.com>
Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/flow.c
include/uapi/rdma/mlx5_user_ioctl_cmds.h