Skip to content

Commit aa0c08f

Browse files
Jack Morgensteindavem330
authored andcommitted
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: 623ed84 ("mlx4_core: initial header-file changes for SRIOV support") Signed-off-by: Jack Morgenstein <[email protected]> Signed-off-by: Moshe Shemesh <[email protected]> Signed-off-by: Tariq Toukan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent ff57087 commit aa0c08f

File tree

1 file changed

+2
-1
lines changed
  • drivers/net/ethernet/mellanox/mlx4

1 file changed

+2
-1
lines changed

drivers/net/ethernet/mellanox/mlx4/mlx4.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,10 @@ enum mlx4_resource {
145145
RES_MTT,
146146
RES_MAC,
147147
RES_VLAN,
148-
RES_EQ,
148+
RES_NPORT_ID,
149149
RES_COUNTER,
150150
RES_FS_RULE,
151+
RES_EQ,
151152
MLX4_NUM_OF_RESOURCE_TYPE
152153
};
153154

0 commit comments

Comments
 (0)