]> git.baikalelectronics.ru Git - kernel.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)
commit135e53941a531d8bf63914b5414138bf458d0a7c
tree85341db77286ba0ec948b96a92f1f0caa848e62b
parent06d1f9919c5155d9720badad6788f704b0fc917c
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