OSDN Git Service

IB/mlx5: Support adding flow steering rule by raw description
authorYishai Hadas <yishaih@mellanox.com>
Mon, 23 Jul 2018 12:25:10 +0000 (15:25 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 24 Jul 2018 20:03:56 +0000 (14:03 -0600)
commitd4be3f4466b8a770ea2c3b57b942efd057fe1c19
treeb231ef1259634515190fdc714082ec1371fdaa54
parent32269441240064c7475241ae28fee787fcdf55b9
IB/mlx5: Support adding flow steering rule by raw description

Add support to set a public flow steering rule when its destination is a
TIR by using raw specification data.

The logic follows the verbs API but instead of using ib_spec(s) the raw,
device specific, description is used.

This allows supporting specialty matchers without having to define new
matches in the verbs struct based language.

Signed-off-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/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h