diff options
author | Or Gerlitz <ogerlitz@mellanox.com> | 2011-06-15 14:49:57 (GMT) |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2011-07-19 04:04:36 (GMT) |
commit | cfcde11c3d7ae175f49280bb6f913478c2f1bd8c (patch) | |
tree | 1d6bc41c59035f791bd27f8d34fb95eb667a691f /include/linux/mlx4 | |
parent | 6aea213a62122701891fe55cc3405d31b927cfde (diff) | |
download | linux-fsl-qoriq-cfcde11c3d7ae175f49280bb6f913478c2f1bd8c.tar.xz |
IB/mlx4: Use flow counters on IBoE ports
Allocate flow counter per Ethernet/IBoE port, and attach this counter
to all the QPs created on that port. Based on patch by Eli Cohen
<eli@mellanox.co.il>.
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.co.il>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'include/linux/mlx4')
-rw-r--r-- | include/linux/mlx4/qp.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/mlx4/qp.h b/include/linux/mlx4/qp.h index 6486d88..4001c82 100644 --- a/include/linux/mlx4/qp.h +++ b/include/linux/mlx4/qp.h @@ -54,7 +54,8 @@ enum mlx4_qp_optpar { MLX4_QP_OPTPAR_RETRY_COUNT = 1 << 12, MLX4_QP_OPTPAR_RNR_RETRY = 1 << 13, MLX4_QP_OPTPAR_ACK_TIMEOUT = 1 << 14, - MLX4_QP_OPTPAR_SCHED_QUEUE = 1 << 16 + MLX4_QP_OPTPAR_SCHED_QUEUE = 1 << 16, + MLX4_QP_OPTPAR_COUNTER_INDEX = 1 << 20 }; enum mlx4_qp_state { |