ibcore: Add support for IB_SPEED_HDR in sysfs rate printout.
Submitted by: hselasky@ Approved by: hselasky (mentor) MFC after: 1 week Sponsored by: Mellanox Technologies
This commit is contained in:
parent
c11489eef8
commit
00b2153a02
@ -258,8 +258,13 @@ static ssize_t rate_show(struct ib_port *p, struct port_attribute *unused,
|
||||
speed = " EDR";
|
||||
rate = 250;
|
||||
break;
|
||||
case IB_SPEED_HDR:
|
||||
speed = " HDR";
|
||||
rate = 500;
|
||||
break;
|
||||
case IB_SPEED_SDR:
|
||||
default: /* default to SDR for invalid rates */
|
||||
speed = " SDR";
|
||||
rate = 25;
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user