RDMA/mlx5: Add flow actions support to raw create flow
Support attaching flow actions to a flow rule via raw create flow. For now only NIC RX path is supported. This change requires to export flow resources management functions so we can maintain proper bookkeeping of flow actions. 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>
This commit is contained in:

committed by
Jason Gunthorpe

parent
b823dd6d86
commit
fa76d24ee0
@@ -166,6 +166,12 @@ struct ib_uflow_object {
|
||||
struct ib_uflow_resources *resources;
|
||||
};
|
||||
|
||||
struct ib_uflow_resources *flow_resources_alloc(size_t num_specs);
|
||||
void flow_resources_add(struct ib_uflow_resources *uflow_res,
|
||||
enum ib_flow_spec_type type,
|
||||
void *ibobj);
|
||||
void ib_uverbs_flow_resources_free(struct ib_uflow_resources *uflow_res);
|
||||
|
||||
static inline void ib_set_flow(struct ib_uobject *uobj, struct ib_flow *ibflow,
|
||||
struct ib_qp *qp, struct ib_device *device,
|
||||
struct ib_uflow_resources *uflow_res)
|
||||
|
Reference in New Issue
Block a user