]> git.baikalelectronics.ru Git - kernel.git/commit
{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)
commitafaafae902f033f5af6662985630fe9f9ddd1a94
tree79230a0252c15cb83a469903f9625bcd9568ed02
parentdd4a77d8d3c31b0bb27f6739af636a7506a78031
{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