mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
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
1 changed files with 5 additions and 0 deletions
|
|
@ -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 a new issue