]> asedeno.scripts.mit.edu Git - linux.git/commit
IB/mlx5: Introduce driver create and destroy flow methods
authorYishai Hadas <yishaih@mellanox.com>
Mon, 23 Jul 2018 12:25:09 +0000 (15:25 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 24 Jul 2018 20:03:49 +0000 (14:03 -0600)
commit32269441240064c7475241ae28fee787fcdf55b9
tree85341db77286ba0ec948b96a92f1f0caa848e62b
parent6cd080a674a7adce97c0189c4579cf40782c2770
IB/mlx5: Introduce driver create and destroy flow methods

Introduce driver create and destroy flow methods on the uverbs flow
object.

This allows the driver to get its specific device attributes to match the
underlay specification while still using the generic ib_flow object for
cleanup and code sharing.

The IB object's attributes are set via the ib_set_flow() helper function.

The specific implementation for the given specification is added in
downstream patches.

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/devx.c
drivers/infiniband/hw/mlx5/flow.c
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h
include/rdma/ib_verbs.h
include/rdma/uverbs_named_ioctl.h
include/uapi/rdma/mlx5_user_ioctl_cmds.h