{IB, net}/mlx5: Move the modify QP operation table to mlx5_ib
authormajd@mellanox.com <majd@mellanox.com>
Thu, 14 Jan 2016 17:13:07 +0000 (19:13 +0200)
committerDoug Ledford <dledford@redhat.com>
Thu, 21 Jan 2016 17:01:09 +0000 (12:01 -0500)
commit427c1e7bcd7e5cd62160fcda0ce215ebbe0da3a1
tree79230a0252c15cb83a469903f9625bcd9568ed02
parent75850d0bcece42416ba81bd38e4c719f101c832d
{IB, net}/mlx5: Move the modify QP operation table to mlx5_ib

When modifying a QP, the desired operation was determined in
the mlx5_core using a transition table that takes the current
state, the final state, and returns the desired operation.

Since this logic will be used for Raw Packet QP, move the
operation table to the mlx5_ib.

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/qp.c
include/linux/mlx5/qp.h