diff options
author | Hadar Hen Zion <hadarh@mellanox.com> | 2013-08-14 13:58:31 +0300 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2013-08-28 09:53:56 -0700 |
commit | f77c0162a339400ad16f657603fdc3bf11654fd3 (patch) | |
tree | cf7bd72a5ac499549a697e305fc0cec46be79a6f /include/linux/mlx4 | |
parent | 436f2ad05a0b65b1467ddf51bc68171c381bf844 (diff) | |
download | linux-stable-f77c0162a339400ad16f657603fdc3bf11654fd3.tar.gz linux-stable-f77c0162a339400ad16f657603fdc3bf11654fd3.tar.bz2 linux-stable-f77c0162a339400ad16f657603fdc3bf11654fd3.zip |
IB/mlx4: Add receive flow steering support
Implement ib_create_flow() and ib_destroy_flow().
Translate the verbs structures provided by the user to HW structures
and call the MLX4_QP_FLOW_STEERING_ATTACH/DETACH firmware commands.
On the ATTACH command completion, the firmware provides a 64-bit
registration ID, which is placed into struct mlx4_ib_flow that wraps
the instance of struct ib_flow which is retuned to caller. Later,
this reg ID is used for detaching that flow from the firmware.
Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'include/linux/mlx4')
-rw-r--r-- | include/linux/mlx4/device.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h index 52c23a892bab..d73423c37c25 100644 --- a/include/linux/mlx4/device.h +++ b/include/linux/mlx4/device.h @@ -1052,11 +1052,6 @@ struct _rule_hw { }; }; -/* translating DMFS verbs sniffer rule to the FW API would need two reg IDs */ -struct mlx4_flow_handle { - u64 reg_id[2]; -}; - int mlx4_flow_steer_promisc_add(struct mlx4_dev *dev, u8 port, u32 qpn, enum mlx4_net_trans_promisc_mode mode); int mlx4_flow_steer_promisc_remove(struct mlx4_dev *dev, u8 port, |