]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ib_uverbs: Avoid vendor specific masking of attributes in query_qp
authorKnut Omang <knut.omang@oracle.com>
Tue, 21 Apr 2015 10:20:06 +0000 (12:20 +0200)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Wed, 8 Jul 2015 01:10:59 +0000 (18:10 -0700)
commit8e73cdb06fa4b8d1fdef3153084aee7b5cdb7fdf
tree720548af08037835155bf3ea5f3fdf34b53802c9
parent0b86060b8d902fd00a393f9321135a60a3909140
ib_uverbs: Avoid vendor specific masking of attributes in query_qp

This commit removes the implementation and use of the modify_qp_mask
helper function from the generic OFED implementation and into individual
device drivers.

Like with use of the ib_modify_qp_is_ok function it should be up to
each device driver how to handle bits set in the attribute masks.

With the modify_qp_mask function applied in the generic code,
drivers would not see the bits that the user process actually sets.

The restrictions imposed by the filter are also beyond what
is imposed by the Infiniband standard, and would also limit
future drivers or hardware from checking for unsupported or
invalid settings.

Orabug: 20930262

Signed-off-by: Knut Omang <knut.omang@oracle.com>
Signed-off-by: Mukesh Kacker <mukesh.kacker@oracle.com>
drivers/infiniband/core/uverbs_cmd.c
drivers/infiniband/hw/mlx4/qp.c
drivers/infiniband/hw/mlx5/qp.c