]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit347f20a887ee566ac0c358c7464283d323ccba5f
tree248e948fad5e04630bdd4db1c8636fa18fff48c4
parent8b96d5ebd60f7496add76416422af94ebc6a1588
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