]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
IB/uverbs: Refactor kern_spec_to_ib_spec_filter
authorMatan Barak <matanb@mellanox.com>
Wed, 28 Mar 2018 06:27:44 +0000 (09:27 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 4 Apr 2018 18:06:24 +0000 (12:06 -0600)
commit766d8551ada05326f0cafc5fc0bd32a666cebeed
tree34173f611ad7a8c9660ccfad3c87e6a07d1bdadd
parent8510020d2916b9f7d8e406aa2fb2d35fbe692f4d
IB/uverbs: Refactor kern_spec_to_ib_spec_filter

The current implementation of kern_spec_to_ib_spec_filter, which takes
a uAPI based flow steering specification and creates the respective kernel
API flow steering structure, gets a ib_uverbs_flow_spec structure.
The new flow_action uAPI gets a match mask and filter from user-space
which aren't encoded in the flow steering's ib_uverbs_flow_spec structure.
Exporting the logic out of kern_spec_to_ib_spec_filter to get user-space
blobs rather than ib_uverbs_flow_spec structure.

Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/uverbs.h
drivers/infiniband/core/uverbs_cmd.c