• Vasundhara Volam's avatar
    bnxt_en: Add support for devlink info command · 9599e036
    Vasundhara Volam authored
    Display the following information via devlink info command:
      - Driver name
      - Board id
      - Broad revision
      - Board Serial number
      - Board FW version
      - FW parameter set version
      - FW App version
      - FW management version
      - FW RoCE version
    
      Standard output example:
      $ devlink dev info pci/0000:3b:00.0
      pci/0000:3b:00.0:
      driver bnxt_en
      serial_number 00-10-18-FF-FE-AD-05-00
      versions:
          fixed:
            asic.id D802
            asic.rev 1
          running:
            fw 216.1.124.0
            fw.psid 0.0.0
            fw.app 216.1.122.0
            fw.mgmt 864.0.32.0
            fw.roce 216.1.15.0
    
    [ This version has incorporated changes suggested by Jakub Kicinski to
      use generic devlink version tags. ]
    
    v2: Use fw.psid
    
    Cc: Jiri Pirko <jiri@mellanox.com>
    Cc: Jakub Kicinski <kuba@kernel.org>
    Signed-off-by: default avatarVasundhara Volam <vasundhara-v.volam@broadcom.com>
    Signed-off-by: default avatarMichael Chan <michael.chan@broadcom.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    9599e036
bnxt_devlink.h 1.77 KB