diff options
author | Hadar Hen Zion <hadarh@mellanox.com> | 2013-04-24 09:58:47 -0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2013-04-24 20:51:29 -0400 |
commit | bcf372971d471f6cb4070adb7bfc987d8b3d21f2 (patch) | |
tree | d99f6faa007d10a1246a0f7a4853dff6e8b98d44 /include/linux/mlx4 | |
parent | ba60a3560ccf8e4253da9c0e8d1292375fd51796 (diff) |
mlx4_core: Directly expose fields of DMFS HW rule control segment
Some of struct mlx4_net_trans_rule_hw_ctrl fields were packed into u32
and accessed through bit field operations. Expose and access them
directly as u8 or u16.
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 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h index a69bda77c1d1..08e5bc1387e1 100644 --- a/include/linux/mlx4/device.h +++ b/include/linux/mlx4/device.h | |||
@@ -964,7 +964,9 @@ struct mlx4_net_trans_rule { | |||
964 | }; | 964 | }; |
965 | 965 | ||
966 | struct mlx4_net_trans_rule_hw_ctrl { | 966 | struct mlx4_net_trans_rule_hw_ctrl { |
967 | __be32 ctrl; | 967 | __be16 prio; |
968 | u8 type; | ||
969 | u8 flags; | ||
968 | u8 rsvd1; | 970 | u8 rsvd1; |
969 | u8 funcid; | 971 | u8 funcid; |
970 | u8 vep; | 972 | u8 vep; |