From: Selvin Xavier Date: Tue, 20 Mar 2018 06:43:55 +0000 (-0700) Subject: bnxt_re: Add speed defines for 50G and 100G adapters X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=8dc59408216231fe337b51419d5ac75a908ae0b9;p=~aditr%2Fcompat-rdma.git bnxt_re: Add speed defines for 50G and 100G adapters Adds driver support to display 50G and 100G rates properly. Bug: 2684 Signed-off-by: Selvin Xavier --- diff --git a/linux-next-pending/0029-RDMA-bnxt_re-Fix-the-ib-rate-displayed-for-50G-adapt.patch b/linux-next-pending/0029-RDMA-bnxt_re-Fix-the-ib-rate-displayed-for-50G-adapt.patch new file mode 100644 index 0000000..cc4483b --- /dev/null +++ b/linux-next-pending/0029-RDMA-bnxt_re-Fix-the-ib-rate-displayed-for-50G-adapt.patch @@ -0,0 +1,36 @@ +From c6f1004d0fe8e070f8b6267a6013602768c32401 Mon Sep 17 00:00:00 2001 +From: Selvin Xavier +Date: Mon, 19 Mar 2018 23:20:32 -0700 +Subject: [PATCH] RDMA/bnxt_re: Fix the ib rate displayed for 50G adapters + +Add the speed defines for 50G and 100G adapters + +Signed-off-by: Selvin Xavier +--- + drivers/infiniband/hw/bnxt_re/ib_verbs.c | 10 ++++++++-- + 1 file changed, 8 insertions(+), 2 deletions(-) + +diff --git a/drivers/infiniband/hw/bnxt_re/ib_verbs.c b/drivers/infiniband/hw/bnxt_re/ib_verbs.c +index 9d6bfdb..94c4952 100644 +--- a/drivers/infiniband/hw/bnxt_re/ib_verbs.c ++++ b/drivers/infiniband/hw/bnxt_re/ib_verbs.c +@@ -265,8 +265,14 @@ static void __to_ib_speed_width(struct net_device *netdev, u8 *speed, u8 *width) + *speed = IB_SPEED_QDR; + *width = IB_WIDTH_4X; + break; +- case SPEED_50000: +- break; ++ case SPEED_50000: ++ *speed = IB_SPEED_HDR; ++ *width = IB_WIDTH_1X; ++ break; ++ case SPEED_100000: ++ *speed = IB_SPEED_EDR; ++ *width = IB_WIDTH_4X; ++ break; + default: + *speed = IB_SPEED_SDR; + *width = IB_WIDTH_1X; +-- +1.8.3.1 +