diff options
author | Matan Barak | 2014-07-31 10:01:29 +0200 |
---|---|---|
committer | Roland Dreier | 2014-08-02 00:11:13 +0200 |
commit | e630664c8383f300c4146d7613d61e5a8eb1f8e3 (patch) | |
tree | e3ec77b2c8b34bc022d0014622e4d392a33aed43 /drivers/net/ethernet/mellanox/mlx4/mlx4.h | |
parent | IB/core: Add user MR re-registration support (diff) | |
download | kernel-qcow2-linux-e630664c8383f300c4146d7613d61e5a8eb1f8e3.tar.gz kernel-qcow2-linux-e630664c8383f300c4146d7613d61e5a8eb1f8e3.tar.xz kernel-qcow2-linux-e630664c8383f300c4146d7613d61e5a8eb1f8e3.zip |
mlx4_core: Add helper functions to support MR re-registration
Add few helper functions to support a mechanism of getting an MPT,
modifying it and updating the HCA with the modified object.
The code takes 2 paths, one for directly changing the MPT (and
sometimes its related MTTs) and another one which queries the MPT and
updates the HCA via fw command SW2HW_MPT. The first path is used in
native mode; the second path is slower and is used only in SRIOV.
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
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/mlx4.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/mlx4.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/mlx4.h b/drivers/net/ethernet/mellanox/mlx4/mlx4.h index 1d8af7336807..b40d587974fa 100644 --- a/drivers/net/ethernet/mellanox/mlx4/mlx4.h +++ b/drivers/net/ethernet/mellanox/mlx4/mlx4.h @@ -279,6 +279,8 @@ struct mlx4_icm_table { #define MLX4_MPT_FLAG_PHYSICAL (1 << 9) #define MLX4_MPT_FLAG_REGION (1 << 8) +#define MLX4_MPT_PD_MASK (0x1FFFFUL) +#define MLX4_MPT_PD_VF_MASK (0xFE0000UL) #define MLX4_MPT_PD_FLAG_FAST_REG (1 << 27) #define MLX4_MPT_PD_FLAG_RAE (1 << 28) #define MLX4_MPT_PD_FLAG_EN_INV (3 << 24) |