diff options
author | Jack Morgenstein <jackm@dev.mellanox.co.il> | 2013-11-03 03:03:19 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-11-04 16:19:07 -0500 |
commit | 2009d0059c084288f060b1ffe3d14229588acb67 (patch) | |
tree | 066b709ab7cdb70f26b8ab7fdd6a60eb9dee1158 /include/linux/mlx4 | |
parent | acddd5dd44d4fd9b45dd5ee69cd8b183052b1cdc (diff) |
net/mlx4_en: Use vlan id instead of vlan index for unregistration
Use of vlan_index created problems unregistering vlans on guests.
In addition, tools delete vlan by tag, not by index, lets follow that.
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mlx4')
-rw-r--r-- | include/linux/mlx4/device.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h index 297a16309f00..e2e92885bdc1 100644 --- a/include/linux/mlx4/device.h +++ b/include/linux/mlx4/device.h | |||
@@ -1079,7 +1079,7 @@ int mlx4_SET_PORT_SCHEDULER(struct mlx4_dev *dev, u8 port, u8 *tc_tx_bw, | |||
1079 | u8 *pg, u16 *ratelimit); | 1079 | u8 *pg, u16 *ratelimit); |
1080 | int mlx4_find_cached_vlan(struct mlx4_dev *dev, u8 port, u16 vid, int *idx); | 1080 | int mlx4_find_cached_vlan(struct mlx4_dev *dev, u8 port, u16 vid, int *idx); |
1081 | int mlx4_register_vlan(struct mlx4_dev *dev, u8 port, u16 vlan, int *index); | 1081 | int mlx4_register_vlan(struct mlx4_dev *dev, u8 port, u16 vlan, int *index); |
1082 | void mlx4_unregister_vlan(struct mlx4_dev *dev, u8 port, int index); | 1082 | void mlx4_unregister_vlan(struct mlx4_dev *dev, u8 port, u16 vlan); |
1083 | 1083 | ||
1084 | int mlx4_map_phys_fmr(struct mlx4_dev *dev, struct mlx4_fmr *fmr, u64 *page_list, | 1084 | int mlx4_map_phys_fmr(struct mlx4_dev *dev, struct mlx4_fmr *fmr, u64 *page_list, |
1085 | int npages, u64 iova, u32 *lkey, u32 *rkey); | 1085 | int npages, u64 iova, u32 *lkey, u32 *rkey); |