diff options
author | Hadar Hen Zion <hadarh@mellanox.com> | 2013-04-24 09:58:46 -0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2013-04-24 20:51:29 -0400 |
commit | ba60a3560ccf8e4253da9c0e8d1292375fd51796 (patch) | |
tree | 2ffc9ce3c20f3a3159eda08be16d8ac4d1a71f9e /drivers/net/ethernet/mellanox/mlx4/mcg.c | |
parent | f91625398a2e6e03f0155861b630021ceddb42e7 (diff) |
mlx4_core: Change a few DMFS fields names to match firmare spec
Change struct mlx4_net_trans_rule_hw_eth :: vlan_id name to vlan_tag
Change struct mlx4_net_trans_rule_hw_ib :: r_u_qpn name to l3_qpn
The patch doesn't introduce any functional change or API change
towards the firmware.
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 'drivers/net/ethernet/mellanox/mlx4/mcg.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/mcg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/mcg.c b/drivers/net/ethernet/mellanox/mlx4/mcg.c index d1f01dc8fbc3..3cfd3725961d 100644 --- a/drivers/net/ethernet/mellanox/mlx4/mcg.c +++ b/drivers/net/ethernet/mellanox/mlx4/mcg.c | |||
@@ -714,12 +714,12 @@ static int parse_trans_rule(struct mlx4_dev *dev, struct mlx4_spec_list *spec, | |||
714 | rule_hw->eth.ether_type_enable = 1; | 714 | rule_hw->eth.ether_type_enable = 1; |
715 | rule_hw->eth.ether_type = spec->eth.ether_type; | 715 | rule_hw->eth.ether_type = spec->eth.ether_type; |
716 | } | 716 | } |
717 | rule_hw->eth.vlan_id = spec->eth.vlan_id; | 717 | rule_hw->eth.vlan_tag = spec->eth.vlan_id; |
718 | rule_hw->eth.vlan_id_msk = spec->eth.vlan_id_msk; | 718 | rule_hw->eth.vlan_tag_msk = spec->eth.vlan_id_msk; |
719 | break; | 719 | break; |
720 | 720 | ||
721 | case MLX4_NET_TRANS_RULE_ID_IB: | 721 | case MLX4_NET_TRANS_RULE_ID_IB: |
722 | rule_hw->ib.qpn = spec->ib.r_qpn; | 722 | rule_hw->ib.l3_qpn = spec->ib.l3_qpn; |
723 | rule_hw->ib.qpn_mask = spec->ib.qpn_msk; | 723 | rule_hw->ib.qpn_mask = spec->ib.qpn_msk; |
724 | memcpy(&rule_hw->ib.dst_gid, &spec->ib.dst_gid, 16); | 724 | memcpy(&rule_hw->ib.dst_gid, &spec->ib.dst_gid, 16); |
725 | memcpy(&rule_hw->ib.dst_gid_msk, &spec->ib.dst_gid_msk, 16); | 725 | memcpy(&rule_hw->ib.dst_gid_msk, &spec->ib.dst_gid_msk, 16); |