IB/mlx5: Add Raw Packet QP query functionality
authormajd@mellanox.com <majd@mellanox.com>
Thu, 14 Jan 2016 17:13:05 +0000 (19:13 +0200)
committerDoug Ledford <dledford@redhat.com>
Thu, 21 Jan 2016 17:01:09 +0000 (12:01 -0500)
commit6d2f89df04b796e7dcc4f9f8dc0d8f04ad7f144b
tree4e46f16bddb50a93de0328b4cf8c82ad0864ac29
parent0fb2ed66a14c8c34096d6a8cff5112356c5e9ea2
IB/mlx5: Add Raw Packet QP query functionality

Since Raw Packet QP is composed of RQ and SQ, the IB QP's
state is derived from the sub-objects. Therefore we need
to query each one of the sub-objects, and decide on the
IB QP's state.

Signed-off-by: Majd Dibbiny <majd@mellanox.com>
Reviewed-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/qp.c
drivers/net/ethernet/mellanox/mlx5/core/transobj.c
include/linux/mlx5/qp.h
include/linux/mlx5/transobj.h