IB/core: Fix input len in multiple user verbs
authorAmrani, Ram <Ram.Amrani@cavium.com>
Tue, 27 Jun 2017 14:04:42 +0000 (17:04 +0300)
committerDoug Ledford <dledford@redhat.com>
Tue, 22 Aug 2017 18:02:29 +0000 (14:02 -0400)
commite093111ddb6c786e32b882108c1c08ef83d781f4
tree05ffd8602e38a9205da70090e7fbf1fbc51fdceb
parent18c90df9f2c00cb35ab8ba747aa0f742ee6bbf6a
IB/core: Fix input len in multiple user verbs

Most user verbs pass user data to the kernel with the inclusion of the
ib_uverbs_cmd_hdr structure. This is problematic because the vendor has
no ideas if the verb was called by a legacy verb or an extended verb.
Also, the incosistency between the verbs is confusing.

Fixes: 565197dd8fb1 ("IB/core: Extend ib_uverbs_create_cq")
Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com>
Signed-off-by: Ariel Elior <Ariel.Elior@cavium.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/uverbs_cmd.c
drivers/infiniband/hw/mlx5/cq.c
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mthca/mthca_provider.c