Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • net
  • core
  • devlink.c
Find file BlameHistoryPermalink
  • Parav Pandit's avatar
    devlink: Introduce devlink port flavour virtual · acf1ee44
    Parav Pandit authored Mar 03, 2020
    
    
    Currently mlx5 PCI PF and VF devlink devices register their ports as
    physical port in non-representors mode.
    
    Introduce a new port flavour as virtual so that virtual devices can
    register 'virtual' flavour to make it more clear to users.
    
    An example of one PCI PF and 2 PCI virtual functions, each having
    one devlink port.
    
    $ devlink port show
    pci/0000:06:00.0/1: type eth netdev ens2f0 flavour physical port 0
    pci/0000:06:00.2/1: type eth netdev ens2f2 flavour virtual port 0
    pci/0000:06:00.3/1: type eth netdev ens2f3 flavour virtual port 0
    
    Reviewed-by: default avatarJiri Pirko <jiri@mellanox.com>
    Signed-off-by: default avatarParav Pandit <parav@mellanox.com>
    Acked-by: default avatarJakub Kicinski <kuba@kernel.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    acf1ee44
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7