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>
This commit is contained in:
Hadar Hen Zion
2013-04-24 13:58:47 +00:00
committed by Roland Dreier
parent ba60a3560c
commit bcf372971d
2 changed files with 10 additions and 8 deletions

View File

@@ -964,7 +964,9 @@ struct mlx4_net_trans_rule {
};
struct mlx4_net_trans_rule_hw_ctrl {
__be32 ctrl;
__be16 prio;
u8 type;
u8 flags;
u8 rsvd1;
u8 funcid;
u8 vep;