aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorMatan Barak <matanb@mellanox.com>2017-08-03 16:07:00 +0300
committerDoug Ledford <dledford@redhat.com>2017-08-31 08:35:10 -0400
commit118620d3686b2d624f9a5019f2f14c64cf50d21a (patch)
tree89b4ceb75fe00309fb0ec6f474a01e2b82a9eb64 /crypto
parentIB/core: Add DEVICE object and root tree structure (diff)
downloadlinux-dev-118620d3686b2d624f9a5019f2f14c64cf50d21a.tar.xz
linux-dev-118620d3686b2d624f9a5019f2f14c64cf50d21a.zip
IB/core: Add uverbs merge trees functionality
Different drivers support different features and even subset of the common uverbs implementation. Currently, this is handled as bitmask in every driver that represents which kind of methods it supports, but doesn't go down to attributes granularity. Moreover, drivers might want to add their specific types, methods and attributes to let their user-space counter-parts be exposed to some more efficient abstractions. It means that existence of different features is validated syntactically via the parsing infrastructure rather than using a complex in-handler logic. In order to do that, we allow defining features and abstractions as parsing trees. These per-feature parsing tree could be merged to an efficient (perfect-hash based) parsing tree, which is later used by the parsing infrastructure. To sum it up, this makes a parse tree unique for a device and represents only the features this particular device supports. This is done by having a root specification tree per feature. Before a device registers itself as an IB device, it merges all these trees into one parsing tree. This parsing tree is used to parse all user-space commands. A future user-space application could read this parse tree. This tree represents which objects, methods and attributes are supported by this device. This is based on the idea of Jason Gunthorpe <jgunthorpe@obsidianresearch.com> Signed-off-by: Matan Barak <matanb@mellanox.com> Reviewed-by: Yishai Hadas <yishaih@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions