aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorYevgeny Petrilin <yevgenyp@mellanox.co.il>2008-04-25 14:52:32 -0700
committerRoland Dreier <rolandd@cisco.com>2008-04-25 14:52:32 -0700
commited4d3c1061d6f367a4ef5e1656c25af3314fe2b7 (patch)
tree93e627fa3d8f7b439625ffec5ccd390d100d67a1 /include
parent38ae6a535470b959df67ded6798fc542bb212e19 (diff)
downloadkernel_samsung_espresso10-ed4d3c1061d6f367a4ef5e1656c25af3314fe2b7.zip
kernel_samsung_espresso10-ed4d3c1061d6f367a4ef5e1656c25af3314fe2b7.tar.gz
kernel_samsung_espresso10-ed4d3c1061d6f367a4ef5e1656c25af3314fe2b7.tar.bz2
mlx4_core: Add helper to move QP to ready-to-send
Avoid duplicating code in ethernet and FC modules. Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mlx4/qp.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/mlx4/qp.h b/include/linux/mlx4/qp.h
index a5e43fe..7f128b2 100644
--- a/include/linux/mlx4/qp.h
+++ b/include/linux/mlx4/qp.h
@@ -296,6 +296,10 @@ int mlx4_qp_modify(struct mlx4_dev *dev, struct mlx4_mtt *mtt,
int mlx4_qp_query(struct mlx4_dev *dev, struct mlx4_qp *qp,
struct mlx4_qp_context *context);
+int mlx4_qp_to_ready(struct mlx4_dev *dev, struct mlx4_mtt *mtt,
+ struct mlx4_qp_context *context,
+ struct mlx4_qp *qp, enum mlx4_qp_state *qp_state);
+
static inline struct mlx4_qp *__mlx4_qp_lookup(struct mlx4_dev *dev, u32 qpn)
{
return radix_tree_lookup(&dev->qp_table_tree, qpn & (dev->caps.num_qps - 1));