]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerJiri Slaby <jslaby@suse.cz>
Thu, 26 Jan 2017 16:40:57 +0000 (17:40 +0100)
commitb1a317d4dc67b758131638649565be133d8de0c5
tree0d9750171b2cd1d45a05b12ba346c7bf301c2ab5
parentd1e2a609ac560496e87cef720b6e08b55cd097aa
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: Jiri Slaby <jslaby@suse.cz>
drivers/infiniband/hw/mlx4/main.c