diff options
author | Jack Morgenstein <jackm@dev.mellanox.co.il> | 2013-11-03 08:03:18 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-11-04 21:19:06 (GMT) |
commit | acddd5dd44d4fd9b45dd5ee69cd8b183052b1cdc (patch) | |
tree | d3c71be4ecbd48fc72164195d216d17d487bfcce /include/linux/mlx4 | |
parent | 162226a1dceaadc4fd61b03fb4ae8be8a1f5863e (diff) | |
download | linux-fsl-qoriq-acddd5dd44d4fd9b45dd5ee69cd8b183052b1cdc.tar.xz |
net/mlx4_core: Fix reg/unreg vlan/mac to conform to the firmware spec
The functions mlx4_register_vlan, mlx4_unregister_vlan, mlx4_register_mac,
mlx4_unregister_mac all made illegal use of the out_param in multifunc mode
to pass the port number. The firmware spec specifies that the port number
should be passed in bits 8..15 of the input-modifier field for ALLOC_RES and
FREE_RES (sections 20.15.1 and 20.15.2).
For MAC register/unregister, this patch contains workarounds so that guests
running previous kernels continue to work on a new Hypervisor, and guests
running the new kernel will continue to work on old hypervisors.
Vlan registeration capability is still not operational in multifunction mode,
since the vlan wrapper functions are not implemented in this patch.
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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h index 9ad0c18..297a163 100644 --- a/include/linux/mlx4/device.h +++ b/include/linux/mlx4/device.h @@ -54,6 +54,7 @@ enum { MLX4_FLAG_MASTER = 1 << 2, MLX4_FLAG_SLAVE = 1 << 3, MLX4_FLAG_SRIOV = 1 << 4, + MLX4_FLAG_OLD_REG_MAC = 1 << 6, }; enum { |