]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDMA/efa: Report link speed according to device attributes
authorMichael Margolin <mrgolin@amazon.com>
Wed, 30 Oct 2024 09:30:06 +0000 (09:30 +0000)
committerLeon Romanovsky <leon@kernel.org>
Wed, 30 Oct 2024 13:36:59 +0000 (15:36 +0200)
commit1103579d6e32a97c71ef43e045ea559bd27d4c15
treefe934253e2070a5e0fa9c5e17074d16319762035
parent808ca6de989c598bc5af1ae0ad971a66077efac0
RDMA/efa: Report link speed according to device attributes

Set port link speed and width based on max bandwidth acquired from the
device instead of using constant 100 Gbps. Use a default value in case
the device didn't set the field.

Reviewed-by: Daniel Kranzdorf <dkkranzd@amazon.com>
Reviewed-by: Firas Jahjah <firasj@amazon.com>
Signed-off-by: Michael Margolin <mrgolin@amazon.com>
Link: https://patch.msgid.link/20241030093006.21352-1-mrgolin@amazon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/efa/efa_admin_cmds_defs.h
drivers/infiniband/hw/efa/efa_com_cmd.c
drivers/infiniband/hw/efa/efa_com_cmd.h
drivers/infiniband/hw/efa/efa_verbs.c