Skip to content

Commit d9c192c

Browse files
committed
Add ethool FEC document
Signed-off-by: Gris Ge <fge@redhat.com>
1 parent d14b227 commit d9c192c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

devel/yaml_api.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
* [Ethtool feature](#ethtool-feature)
3838
* [Ethtool coalesce](#ethtool-coalesce)
3939
* [Ethtool ring](#ethtool-ring)
40+
* [Ethtool FEC(Forward Error Correction)](#ethtool-fecforward-error-correction)
4041
* [LLDP](#lldp)
4142
* [LLDP Enabled](#lldp-enabled)
4243
* [Neighbors](#neighbors)
@@ -884,6 +885,27 @@ interfaces:
884885
tx: 256
885886
```
886887

888+
### Ethtool FEC(Forward Error Correction)
889+
890+
Example YAML to disable automatic FEC and enforce llrs mode:
891+
892+
```yml
893+
---
894+
interfaces:
895+
- name: sim0
896+
type: ethernet
897+
ethtool:
898+
fec:
899+
auto: false
900+
mode: llrs
901+
```
902+
903+
* `auto`: true or false. Once enabled, the `mode` setting will be ignored.
904+
* `mode`: valid values are: `off`, `rs`, `baser`, `llrs`.
905+
906+
Please set FEC mode on the switch first, otherwise nmstate verification stage
907+
will complain about desired FEC mode cannot be activated.
908+
887909
### LLDP
888910

889911
#### LLDP Enabled

0 commit comments

Comments
 (0)