Project

General

Profile

Bug #12382

Mellanox driver is missing advertisement in dladm link-prop

Added by Paul Winder 9 months ago. Updated 8 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
driver - device drivers
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

dladm link-showprop does not show advertised link speeds.

#1

Updated by Paul Winder 9 months ago

With change applied, my 25G mellanox card connected into a 10G switch:

root@test:~# dladm show-linkprop mlxcx0
LINK         PROPERTY        PERM VALUE          DEFAULT        POSSIBLE
mlxcx0       speed           r-   10000          10000          -- 
mlxcx0       autopush        rw   --             --             -- 
mlxcx0       zone            rw   --             --             -- 
mlxcx0       duplex          r-   full           full           half,full 
mlxcx0       state           r-   up             up             up,down 
mlxcx0       adv_autoneg_cap r-   1              1              1,0 
mlxcx0       mtu             rw   1500           1500           22-10000 
mlxcx0       flowctrl        --   --             no             no,tx,rx,bi 
mlxcx0       adv_100gfdx_cap r-   0              0              1,0 
mlxcx0       en_100gfdx_cap  r-   0              0              1,0 
mlxcx0       adv_50gfdx_cap  r-   0              0              1,0 
mlxcx0       en_50gfdx_cap   r-   0              0              1,0 
mlxcx0       adv_40gfdx_cap  r-   0              0              1,0 
mlxcx0       en_40gfdx_cap   r-   0              0              1,0 
mlxcx0       adv_25gfdx_cap  r-   1              0              1,0 
mlxcx0       en_25gfdx_cap   r-   1              0              1,0 
mlxcx0       adv_10gfdx_cap  r-   1              1              1,0 
mlxcx0       en_10gfdx_cap   r-   1              1              1,0 
mlxcx0       adv_5000fdx_cap r-   --             0              1,0 
mlxcx0       en_5000fdx_cap  --   --             0              1,0 
mlxcx0       adv_2500fdx_cap r-   --             0              1,0 
mlxcx0       en_2500fdx_cap  --   --             0              1,0 
mlxcx0       adv_1000fdx_cap r-   1              0              1,0 
mlxcx0       en_1000fdx_cap  r-   1              0              1,0 
mlxcx0       adv_1000hdx_cap r-   --             0              1,0 
mlxcx0       en_1000hdx_cap  --   --             0              1,0 
mlxcx0       adv_100fdx_cap  r-   0              0              1,0 
mlxcx0       en_100fdx_cap   --   0              0              1,0 
mlxcx0       adv_100hdx_cap  r-   --             0              1,0 
mlxcx0       en_100hdx_cap   --   --             0              1,0 
mlxcx0       adv_10fdx_cap   r-   --             0              1,0 
mlxcx0       en_10fdx_cap    --   --             0              1,0 
mlxcx0       adv_10hdx_cap   r-   --             0              1,0 
mlxcx0       en_10hdx_cap    --   --             0              1,0 
mlxcx0       maxbw           rw   --             --             -- 
mlxcx0       cpus            rw   --             --             -- 
mlxcx0       cpus-effective  r-   --             --             -- 
mlxcx0       pool            rw   --             --             -- 
mlxcx0       pool-effective  r-   --             --             -- 
mlxcx0       priority        rw   high           high           low,medium,high 
mlxcx0       tagmode         rw   vlanonly       vlanonly       normal,vlanonly 
mlxcx0       forward         rw   1              1              1,0 
mlxcx0       default_tag     rw   1              1              -- 
mlxcx0       learn_limit     rw   1000           1000           -- 
mlxcx0       learn_decay     rw   200            200            -- 
mlxcx0       stp             rw   1              1              1,0 
LINK         PROPERTY        PERM VALUE          DEFAULT        POSSIBLE
mlxcx0       stp_priority    rw   128            128            -- 
mlxcx0       stp_cost        rw   auto           auto           -- 
mlxcx0       stp_edge        rw   1              1              1,0 
mlxcx0       stp_p2p         rw   auto           auto           true,false,auto 
mlxcx0       stp_mcheck      rw   0              0              1,0 
mlxcx0       protection      rw   --             --             mac-nospoof,
                                                                restricted,
                                                                ip-nospoof,
                                                                dhcp-nospoof 
mlxcx0       allowed-ips     rw   --             --             -- 
mlxcx0       allowed-dhcp-cids rw --             --             -- 
mlxcx0       rxrings         rw   --             --             sw,hw 
mlxcx0       rxrings-effective r- --             --             -- 
mlxcx0       txrings         rw   --             --             sw,hw,<1-63> 
mlxcx0       txrings-effective r- --             --             -- 
mlxcx0       txrings-available r- 63             --             -- 
mlxcx0       rxrings-available r- 0              --             -- 
mlxcx0       rxhwclnt-available r- 257           --             -- 
mlxcx0       txhwclnt-available r- 63            --             -- 
root@test:~# 

#3

Updated by Electric Monk 8 months ago

  • Status changed from In Progress to Closed
  • % Done changed from 90 to 100

git commit 8b11ca880a902725fb8b0bb2c639f3671ac806d6

commit  8b11ca880a902725fb8b0bb2c639f3671ac806d6
Author: Paul Winder <pwinder@racktopsystems.com>
Date:   2020-03-25T16:58:40.000Z

    12382 Mellanox driver is missing advertisement in dladm link-prop
    Reviewed by: Garrett D'Amore <garrett@damore.org>
    Reviewed by: Andy Stormont <astormont@racktopsystems.com>
    Reviewed by: Robert Mustacchi <rm@fingolfin.org>
    Approved by: Garrett D'Amore <garrett@damore.org>

Also available in: Atom PDF