DEVLINK-DEV(8)                      Linux                     DEVLINK-DEV(8)

NAME         top

       devlink-dev - devlink device configuration

SYNOPSIS         top

       devlink [ OPTIONS ] dev  { COMMAND | help }

       OPTIONS := { -V[ersion] | -n[no-nice-names] }

       devlink dev show [ DEV ]

       devlink dev help

       devlink dev eswitch set DEV [ mode { legacy | switchdev } ] [ inline-
               mode { none | link | network | transport } ]

       devlink dev eswitch show DEV

DESCRIPTION         top

   devlink dev show - display devlink device attributes
       DEV - specifies the devlink device to show.  If this argument is
       omitted all devices are listed.

           Format is:

   devlink dev eswitch show - display devlink device eswitch attributes
   devlink dev eswitch set - sets devlink device eswitch attributes
       mode { legacy | switchdev }
              Set eswitch mode

              legacy - Legacy SRIOV

              switchdev - SRIOV switchdev offloads

       inline-mode { none | link | network | transport }
              Some HWs need the VF driver to put part of the packet headers
              on the TX descriptor so the e-switch can do proper matching
              and steering.

              none - None

              link - L2 mode

              network - L3 mode

              transport - L4 mode

EXAMPLES         top

       devlink dev show
           Shows the state of all devlink devices on the system.

       devlink dev show pci/0000:01:00.0
           Shows the state of specified devlink device.

       devlink dev eswitch show pci/0000:01:00.0
           Shows the eswitch mode of specified devlink device.

       devlink dev eswitch set pci/0000:01:00.0 mode switchdev
           Sets the eswitch mode of specified devlink device to switchdev.

SEE ALSO         top

       devlink(8), devlink-port(8), devlink-sb(8), devlink-monitor(8),

AUTHOR         top

       Jiri Pirko <>

COLOPHON         top

       This page is part of the iproute2 (utilities for controlling TCP/IP
       networking and traffic) project.  Information about the project can
       be found at 
       If you have a bug report for this manual page, send it to,  This page was obtained
       from the project's upstream Git repository 
       on 2017-03-13.  If you discover any rendering problems in this HTML
       version of the page, or you believe there is a better or more up-to-
       date source for the page, or you have corrections or improvements to
       the information in this COLOPHON (which is not part of the original
       manual page), send a mail to

iproute2                         14 Mar 2016                  DEVLINK-DEV(8)