diff options
author | Jack Morgenstein <jackm@dev.mellanox.co.il> | 2016-10-27 09:27:13 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-10-29 16:23:48 -0400 |
commit | aa0c08feae8161b945520ada753d0dfe62b14fe7 (patch) | |
tree | 451b7d07a53e6751f376755be636cc97a840fca9 | |
parent | ff57087f314be8d458dca6bdd41be5b4236482a0 (diff) |
net/mlx4_core: Fix the resource-type enum in res tracker to conform to FW spec
The resource type enum in the resource tracker was incorrect.
RES_EQ was put in the position of RES_NPORT_ID (a FC resource).
Since the remaining resources maintain their current values,
and RES_EQ is not passed from slaves to the hypervisor in any
FW command, this change affects only the hypervisor.
Therefore, there is no backwards-compatibility issue.
Fixes: 623ed84b1f95 ("mlx4_core: initial header-file changes for SRIOV support")
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/mlx4.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/mlx4.h b/drivers/net/ethernet/mellanox/mlx4/mlx4.h index e4878f31e45d..7aad07644289 100644 --- a/drivers/net/ethernet/mellanox/mlx4/mlx4.h +++ b/drivers/net/ethernet/mellanox/mlx4/mlx4.h | |||
@@ -145,9 +145,10 @@ enum mlx4_resource { | |||
145 | RES_MTT, | 145 | RES_MTT, |
146 | RES_MAC, | 146 | RES_MAC, |
147 | RES_VLAN, | 147 | RES_VLAN, |
148 | RES_EQ, | 148 | RES_NPORT_ID, |
149 | RES_COUNTER, | 149 | RES_COUNTER, |
150 | RES_FS_RULE, | 150 | RES_FS_RULE, |
151 | RES_EQ, | ||
151 | MLX4_NUM_OF_RESOURCE_TYPE | 152 | MLX4_NUM_OF_RESOURCE_TYPE |
152 | }; | 153 | }; |
153 | 154 | ||