Project

General

Profile

Feature #13166

Support en_fec_cap and adv_fec_cap link properties in i40e

Added by Paul Winder 8 days ago. Updated 7 days ago.

Status:
In Progress
Priority:
Normal
Assignee:
-
Category:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Following on from #13165 we should also support en_fec_cap and adv_fec_cap link properties in i40e


Related issues

Related to illumos gate - Bug #13165: FEC enabled port connected to i40e may not come onlineIn Progress

Actions

History

#1

Updated by Paul Winder 8 days ago

  • Related to Bug #13165: FEC enabled port connected to i40e may not come online added
#2

Updated by Paul Winder 7 days ago

Testing

1. Properties on non-FEC capable device

All properties are read-only

# dladm show-linkprop -p en_fec_cap,adv_fec_cap i40e1
LINK         PROPERTY        PERM VALUE          DEFAULT        POSSIBLE
i40e1        en_fec_cap      r-   --             r-             none,auto,rs,base-r 
i40e1        adv_fec_cap     r-   none           none           none,auto,rs,base-r

2. Properties on FEC capable device

en_fec_cap can be used to change FEC mode.

# dladm show-linkprop -p en_fec_cap,adv_fec_cap i40e5
LINK         PROPERTY        PERM VALUE          DEFAULT        POSSIBLE
i40e5        en_fec_cap      rw   auto           auto           none,auto,rs,base-r 
i40e5        adv_fec_cap     r-   base-r         auto           none,auto,rs,base-r

3. Setting to a FEC mode supported by the switch port

# dladm set-linkprop -t -p en_fec_cap=base-r i40e5
# dladm show-linkprop -p en_fec_cap,adv_fec_cap i40e5
LINK         PROPERTY        PERM VALUE          DEFAULT        POSSIBLE
i40e5        en_fec_cap      rw   base-r         auto           none,auto,rs,base-r 
i40e5        adv_fec_cap     r-   base-r         auto           none,auto,rs,base-r 
# dladm set-linkprop -t -p en_fec_cap=base-r,rs i40e5
# dladm show-linkprop -p en_fec_cap,adv_fec_cap i40e5
LINK         PROPERTY        PERM VALUE          DEFAULT        POSSIBLE
i40e5        en_fec_cap      rw   rs,base-r      auto           none,auto,rs,base-r 
i40e5        adv_fec_cap     r-   base-r         auto           none,auto,rs,base-r 
# dladm set-linkprop -t -p en_fec_cap=auto i40e5
# dladm show-linkprop -p en_fec_cap,adv_fec_cap i40e5
LINK         PROPERTY        PERM VALUE          DEFAULT        POSSIBLE
i40e5        en_fec_cap      rw   auto           auto           none,auto,rs,base-r 
i40e5        adv_fec_cap     r-   base-r         auto           none,auto,rs,base-r

In all cases the link stayed up
# dladm show-phys i40e5
LINK         MEDIA                STATE      SPEED  DUPLEX    DEVICE
i40e5        Ethernet             up         25000  full      i40e5

4. Setting to a FEC mode not support by the switch port

# dladm set-linkprop -t -p en_fec_cap=rs i40e5
# dladm show-linkprop -p en_fec_cap,adv_fec_cap i40e5
LINK         PROPERTY        PERM VALUE          DEFAULT        POSSIBLE
i40e5        en_fec_cap      rw   rs             auto           none,auto,rs,base-r 
i40e5        adv_fec_cap     r-   none           auto           none,auto,rs,base-r

The link is down
# dladm show-phys i40e5
LINK         MEDIA                STATE      SPEED  DUPLEX    DEVICE
i40e5        Ethernet             down       0      unknown   i40e5

5. Setting back to a supported FEC mode

# dladm set-linkprop -t -p en_fec_cap=base-r i40e5
# dladm show-linkprop -p en_fec_cap,adv_fec_cap i40e5
LINK         PROPERTY        PERM VALUE          DEFAULT        POSSIBLE
i40e5        en_fec_cap      rw   base-r         auto           none,auto,rs,base-r 
i40e5        adv_fec_cap     r-   base-r         auto           none,auto,rs,base-r 
# dladm show-phys i40e5
LINK         MEDIA                STATE      SPEED  DUPLEX    DEVICE
i40e5        Ethernet             up         25000  full      i40e5
#3

Updated by Electric Monk 7 days ago

  • Gerrit CR set to 943

Also available in: Atom PDF