diff options
| author | Or Gerlitz <ogerlitz@mellanox.com> | 2011-07-07 15:19:29 -0400 |
|---|---|---|
| committer | Roland Dreier <roland@purestorage.com> | 2011-07-19 00:04:32 -0400 |
| commit | ccf863219675aa86bebdd6a2806acb8176478e37 (patch) | |
| tree | 3ef252eb9b51ae6beb0ce0fbe1babdada8ceefb3 /include/linux/mlx4 | |
| parent | 52eafc68d601afd699b023201b0c6be5209f39ce (diff) | |
mlx4_core: Read extended capabilities into the flags field
Query another dword containing up to 32 extended device capabilities
and merge it into struct mlx4_caps.flags. Update the code that
handles the current extended device capabilities (e.g UDP RSS, WoL,
vep steering, etc) to use the extended device cap flags field instead
of a field per extended capability. Initial patch done 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/device.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h index f337e989b70f..fa861134928a 100644 --- a/include/linux/mlx4/device.h +++ b/include/linux/mlx4/device.h | |||
| @@ -73,7 +73,12 @@ enum { | |||
| 73 | MLX4_DEV_CAP_FLAG_RAW_MCAST = 1LL << 19, | 73 | MLX4_DEV_CAP_FLAG_RAW_MCAST = 1LL << 19, |
| 74 | MLX4_DEV_CAP_FLAG_UD_AV_PORT = 1LL << 20, | 74 | MLX4_DEV_CAP_FLAG_UD_AV_PORT = 1LL << 20, |
| 75 | MLX4_DEV_CAP_FLAG_UD_MCAST = 1LL << 21, | 75 | MLX4_DEV_CAP_FLAG_UD_MCAST = 1LL << 21, |
| 76 | MLX4_DEV_CAP_FLAG_IBOE = 1LL << 30 | 76 | MLX4_DEV_CAP_FLAG_IBOE = 1LL << 30, |
| 77 | MLX4_DEV_CAP_FLAG_UC_LOOPBACK = 1LL << 32, | ||
| 78 | MLX4_DEV_CAP_FLAG_WOL = 1LL << 38, | ||
| 79 | MLX4_DEV_CAP_FLAG_UDP_RSS = 1LL << 40, | ||
| 80 | MLX4_DEV_CAP_FLAG_VEP_UC_STEER = 1LL << 41, | ||
| 81 | MLX4_DEV_CAP_FLAG_VEP_MC_STEER = 1LL << 42 | ||
| 77 | }; | 82 | }; |
| 78 | 83 | ||
| 79 | enum { | 84 | enum { |
| @@ -257,11 +262,6 @@ struct mlx4_caps { | |||
| 257 | u32 bmme_flags; | 262 | u32 bmme_flags; |
| 258 | u32 reserved_lkey; | 263 | u32 reserved_lkey; |
| 259 | u16 stat_rate_support; | 264 | u16 stat_rate_support; |
| 260 | int udp_rss; | ||
| 261 | int loopback_support; | ||
| 262 | int vep_uc_steering; | ||
| 263 | int vep_mc_steering; | ||
| 264 | int wol; | ||
| 265 | u8 port_width_cap[MLX4_MAX_PORTS + 1]; | 265 | u8 port_width_cap[MLX4_MAX_PORTS + 1]; |
| 266 | int max_gso_sz; | 266 | int max_gso_sz; |
| 267 | int reserved_qps_cnt[MLX4_NUM_QP_REGION]; | 267 | int reserved_qps_cnt[MLX4_NUM_QP_REGION]; |
