diff options
author | Vladimir Sokolovsky <vlad@mellanox.co.il> | 2008-09-15 14:25:23 -0700 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2008-09-15 14:25:23 -0700 |
commit | 29bdc88384c2b24e37e5760df0dc898546083d6b (patch) | |
tree | 9d8fe16ac4728ab669f81a763effda21301d9ddf /drivers/net/mlx4 | |
parent | c9257433f2eaf8803a1f3d3be5d984232db41ffe (diff) | |
download | op-kernel-dev-29bdc88384c2b24e37e5760df0dc898546083d6b.zip op-kernel-dev-29bdc88384c2b24e37e5760df0dc898546083d6b.tar.gz |
IB/mlx4: Fix up fast register page list format
Byte swap the addresses in the page list for fast register work requests
to big endian to match what the HCA expectx. Also, the addresses must
have the "present" bit set so that the HCA knows it can access them.
Otherwise the HCA will fault the first time it accesses the memory
region.
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/net/mlx4')
-rw-r--r-- | drivers/net/mlx4/mr.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/mlx4/mr.c b/drivers/net/mlx4/mr.c index 644adf07..d1dd5b4 100644 --- a/drivers/net/mlx4/mr.c +++ b/drivers/net/mlx4/mr.c @@ -71,8 +71,6 @@ struct mlx4_mpt_entry { #define MLX4_MPT_PD_FLAG_RAE (1 << 28) #define MLX4_MPT_PD_FLAG_EN_INV (3 << 24) -#define MLX4_MTT_FLAG_PRESENT 1 - #define MLX4_MPT_STATUS_SW 0xF0 #define MLX4_MPT_STATUS_HW 0x00 |