Commit cb2147a9 authored by Or Gerlitz's avatar Or Gerlitz Committed by David S. Miller

net/mlx4_core: Fix device capabilities dumping

We are dumping device capabilities which are supported both by the
firmware and the driver. Align the array that holds the capability
strings with this practice.
Reported-by: default avatarYuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: default avatarOr Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: default avatarAmir Vadai <amirv@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 19ab574f
...@@ -84,13 +84,10 @@ static void dump_dev_cap_flags(struct mlx4_dev *dev, u64 flags) ...@@ -84,13 +84,10 @@ static void dump_dev_cap_flags(struct mlx4_dev *dev, u64 flags)
[ 1] = "UC transport", [ 1] = "UC transport",
[ 2] = "UD transport", [ 2] = "UD transport",
[ 3] = "XRC transport", [ 3] = "XRC transport",
[ 4] = "reliable multicast",
[ 5] = "FCoIB support",
[ 6] = "SRQ support", [ 6] = "SRQ support",
[ 7] = "IPoIB checksum offload", [ 7] = "IPoIB checksum offload",
[ 8] = "P_Key violation counter", [ 8] = "P_Key violation counter",
[ 9] = "Q_Key violation counter", [ 9] = "Q_Key violation counter",
[10] = "VMM",
[12] = "Dual Port Different Protocol (DPDP) support", [12] = "Dual Port Different Protocol (DPDP) support",
[15] = "Big LSO headers", [15] = "Big LSO headers",
[16] = "MW support", [16] = "MW support",
...@@ -99,12 +96,11 @@ static void dump_dev_cap_flags(struct mlx4_dev *dev, u64 flags) ...@@ -99,12 +96,11 @@ static void dump_dev_cap_flags(struct mlx4_dev *dev, u64 flags)
[19] = "Raw multicast support", [19] = "Raw multicast support",
[20] = "Address vector port checking support", [20] = "Address vector port checking support",
[21] = "UD multicast support", [21] = "UD multicast support",
[24] = "Demand paging support",
[25] = "Router support",
[30] = "IBoE support", [30] = "IBoE support",
[32] = "Unicast loopback support", [32] = "Unicast loopback support",
[34] = "FCS header control", [34] = "FCS header control",
[38] = "Wake On LAN support", [37] = "Wake On LAN (port1) support",
[38] = "Wake On LAN (port2) support",
[40] = "UDP RSS support", [40] = "UDP RSS support",
[41] = "Unicast VEP steering support", [41] = "Unicast VEP steering support",
[42] = "Multicast VEP steering support", [42] = "Multicast VEP steering support",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment