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
475c8de7bf
commit
4aa5230dc5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=341524
@ -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