]> git.karo-electronics.de Git - linux-beck.git/commit
IB/mlx4: Fix port query for 56Gb Ethernet links
authorSaeed Mahameed <saeedm@mellanox.com>
Thu, 10 Nov 2016 09:30:59 +0000 (11:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Jan 2017 07:24:35 +0000 (08:24 +0100)
commit8f95735412ad8d9327cb890ac11a89a4b911c41b
treebcd64b3bbebb3dce74123f62d84565d6daed6519
parent1039b7f5c7ef027279a2f554e31bcb529163d335
IB/mlx4: Fix port query for 56Gb Ethernet links

commit 6fa26208206c406fa529cd73f7ae6bf4181e270b upstream.

Report the correct speed in the port attributes when using a 56Gbps
ethernet link.  Without this change the field is incorrectly set to 10.

Fixes: a9c766bb75ee ('IB/mlx4: Fix info returned when querying IBoE ports')
Fixes: 2e96691c31ec ('IB: Use central enum for speed instead of hard-coded values')
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/hw/mlx4/main.c