diff options
author | Matan Barak <matanb@mellanox.com> | 2013-11-07 15:25:14 +0200 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2014-01-14 14:06:50 -0800 |
commit | 4de6580360867d44adecb2d05febed1c8d186c82 (patch) | |
tree | 4645ce69a405ff0ed519da0ad7d8ba12c76e05a8 /drivers/net/ethernet/mellanox/mlx4/cmd.c | |
parent | 240ae00e4d834e387f4f09e236130f520e357a70 (diff) | |
download | lwn-4de6580360867d44adecb2d05febed1c8d186c82.tar.gz lwn-4de6580360867d44adecb2d05febed1c8d186c82.zip |
mlx4_core: Add support for steerable IB UD QPs
This patch adds support for allocating IB UD QPs that we can steer
traffic from. We introduce a new firmware command FLOW_STEERING_IB_UC_QP_RANGE
and a capability bit.
This command isn't supported for VFs.
Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/cmd.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/cmd.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/cmd.c b/drivers/net/ethernet/mellanox/mlx4/cmd.c index 1e9970d2f0f3..0d02fba94536 100644 --- a/drivers/net/ethernet/mellanox/mlx4/cmd.c +++ b/drivers/net/ethernet/mellanox/mlx4/cmd.c @@ -1371,6 +1371,15 @@ static struct mlx4_cmd_info cmd_info[] = { .verify = NULL, .wrapper = mlx4_QP_FLOW_STEERING_DETACH_wrapper }, + { + .opcode = MLX4_FLOW_STEERING_IB_UC_QP_RANGE, + .has_inbox = false, + .has_outbox = false, + .out_is_imm = false, + .encode_slave_id = false, + .verify = NULL, + .wrapper = mlx4_FLOW_STEERING_IB_UC_QP_RANGE_wrapper + }, }; static int mlx4_master_process_vhcr(struct mlx4_dev *dev, int slave, |