Logo

The Linux Kernel

7.3.0-rc5

Quick search

Contents

Working with the development community

  • Development process
  • Submitting patches
  • Code of conduct
  • Maintainer handbook
  • All development-process docs

Internal API manuals

  • Core API
  • Driver APIs
  • Subsystems
    • Core subsystems
    • Human interfaces
    • Networking interfaces
      • Networking
      • NetLabel
      • InfiniBand
      • MHI
    • Storage interfaces
    • Other subsystems
  • Locking

Development tools and processes

  • Licensing rules
  • Writing documentation
  • Development tools
  • Testing guide
  • Hacking guide
  • Tracing
  • Fault injection
  • Livepatching
  • Rust

User-oriented documentation

  • Administration
  • Build system
  • Reporting issues
  • Userspace tools
  • Userspace API

Firmware-related documentation

  • Firmware
  • Firmware and Devicetree

Architecture-specific documentation

  • CPU architectures

Other documentation

  • Unsorted documentation

Translations

  • Translations

This Page

  • Show Source

Family devlink netlink specificationΒΆ

Contents

  • Family devlink netlink specification

    • Summary

    • Operations

      • get

      • port-get

      • port-set

      • port-new

      • port-del

      • port-split

      • port-unsplit

      • sb-get

      • sb-pool-get

      • sb-pool-set

      • sb-port-pool-get

      • sb-port-pool-set

      • sb-tc-pool-bind-get

      • sb-tc-pool-bind-set

      • sb-occ-snapshot

      • sb-occ-max-clear

      • eswitch-get

      • eswitch-set

      • dpipe-table-get

      • dpipe-entries-get

      • dpipe-headers-get

      • dpipe-table-counters-set

      • resource-set

      • resource-dump

      • reload

      • param-get

      • param-set

      • region-get

      • region-new

      • region-del

      • region-read

      • port-param-get

      • port-param-set

      • info-get

      • health-reporter-get

      • health-reporter-set

      • health-reporter-recover

      • health-reporter-diagnose

      • health-reporter-dump-get

      • health-reporter-dump-clear

      • flash-update

      • trap-get

      • trap-set

      • trap-group-get

      • trap-group-set

      • trap-policer-get

      • trap-policer-set

      • health-reporter-test

      • rate-get

      • rate-set

      • rate-new

      • rate-del

      • linecard-get

      • linecard-set

      • selftests-get

      • selftests-run

      • notify-filter-set

    • Definitions

      • sb-pool-type

      • port-type

      • port-flavour

      • port-fn-state

      • port-fn-opstate

      • port-fn-attr-cap

      • rate-type

      • sb-threshold-type

      • eswitch-mode

      • eswitch-inline-mode

      • eswitch-encap-mode

      • dpipe-header-id

      • dpipe-match-type

      • dpipe-action-type

      • dpipe-field-mapping-type

      • resource-unit

      • resource-scope

      • reload-action

      • param-cmode

      • flash-overwrite

      • trap-action

      • trap-type

      • var-attr-type

      • rate-tc-index-max

    • Attribute sets

      • devlink

      • dl-dev-stats

      • dl-reload-stats

      • dl-reload-act-info

      • dl-reload-act-stats

      • dl-reload-stats-entry

      • dl-info-version

      • dl-port-function

      • dl-dpipe-tables

      • dl-dpipe-table

      • dl-dpipe-table-matches

      • dl-dpipe-table-actions

      • dl-dpipe-entries

      • dl-dpipe-entry

      • dl-dpipe-entry-match-values

      • dl-dpipe-entry-action-values

      • dl-dpipe-match

      • dl-dpipe-match-value

      • dl-dpipe-action

      • dl-dpipe-action-value

      • dl-dpipe-headers

      • dl-dpipe-header

      • dl-dpipe-header-fields

      • dl-dpipe-field

      • dl-resource

      • dl-resource-list

      • dl-param

      • dl-region-snapshots

      • dl-region-snapshot

      • dl-region-chunks

      • dl-region-chunk

      • dl-fmsg

      • dl-health-reporter

      • dl-attr-stats

      • dl-trap-metadata

      • dl-linecard-supported-types

      • dl-selftest-id

      • dl-rate-tc-bws

      • dl-parent-dev

SummaryΒΆ

Partial family for Devlink.

OperationsΒΆ

getΒΆ

Get devlink instances.

attribute-set:

devlink

dont-validate:

[β€˜strict’, β€˜dump’]

do:
pre

devlink-nl-pre-doit

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index]

reply
attributes:

[bus-name, dev-name, index, reload-failed, dev-stats]

dump:
reply
attributes:

[bus-name, dev-name, index, reload-failed, dev-stats]

port-getΒΆ

Get devlink port instances.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

do:
pre

devlink-nl-pre-doit-port

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, port-index]

reply
attributes:

[bus-name, dev-name, index, port-index]

dump:
request
attributes:

[bus-name, dev-name, index]

reply
attributes:

[bus-name, dev-name, index, port-index]

port-setΒΆ

Set devlink port instances.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

flags:

[admin-perm]

do:
pre

devlink-nl-pre-doit-port

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, port-index, port-type, port-function]

port-newΒΆ

Create devlink port instances.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

flags:

[admin-perm]

do:
pre

devlink-nl-pre-doit

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, port-index, port-flavour, port-pci-pf-number, port-pci-sf-number, port-controller-number]

reply
attributes:

[bus-name, dev-name, index, port-index]

port-delΒΆ

Delete devlink port instances.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

flags:

[admin-perm]

do:
pre

devlink-nl-pre-doit-port

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, port-index]

port-splitΒΆ

Split devlink port instances.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

flags:

[admin-perm]

do:
pre

devlink-nl-pre-doit-port

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, port-index, port-split-count]

port-unsplitΒΆ

Unplit devlink port instances.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

flags:

[admin-perm]

do:
pre

devlink-nl-pre-doit-port

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, port-index]

sb-getΒΆ

Get shared buffer instances.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

do:
pre

devlink-nl-pre-doit

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, sb-index]

reply
attributes:

[bus-name, dev-name, index, sb-index]

dump:
request
attributes:

[bus-name, dev-name, index]

reply
attributes:

[bus-name, dev-name, index, sb-index]

sb-pool-getΒΆ

Get shared buffer pool instances.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

do:
pre

devlink-nl-pre-doit

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, sb-index, sb-pool-index]

reply
attributes:

[bus-name, dev-name, index, sb-index, sb-pool-index]

dump:
request
attributes:

[bus-name, dev-name, index]

reply
attributes:

[bus-name, dev-name, index, sb-index, sb-pool-index]

sb-pool-setΒΆ

Set shared buffer pool instances.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

flags:

[admin-perm]

do:
pre

devlink-nl-pre-doit

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, sb-index, sb-pool-index, sb-pool-threshold-type, sb-pool-size]

sb-port-pool-getΒΆ

Get shared buffer port-pool combinations and threshold.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

do:
pre

devlink-nl-pre-doit-port

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, port-index, sb-index, sb-pool-index]

reply
attributes:

[bus-name, dev-name, index, port-index, sb-index, sb-pool-index]

dump:
request
attributes:

[bus-name, dev-name, index]

reply
attributes:

[bus-name, dev-name, index, port-index, sb-index, sb-pool-index]

sb-port-pool-setΒΆ

Set shared buffer port-pool combinations and threshold.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

flags:

[admin-perm]

do:
pre

devlink-nl-pre-doit-port

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, port-index, sb-index, sb-pool-index, sb-threshold]

sb-tc-pool-bind-getΒΆ

Get shared buffer port-TC to pool bindings and threshold.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

do:
pre

devlink-nl-pre-doit-port

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, port-index, sb-index, sb-pool-type, sb-tc-index]

reply
attributes:

[bus-name, dev-name, index, port-index, sb-index, sb-pool-type, sb-tc-index]

dump:
request
attributes:

[bus-name, dev-name, index]

reply
attributes:

[bus-name, dev-name, index, port-index, sb-index, sb-pool-type, sb-tc-index]

sb-tc-pool-bind-setΒΆ

Set shared buffer port-TC to pool bindings and threshold.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

flags:

[admin-perm]

do:
pre

devlink-nl-pre-doit-port

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, port-index, sb-index, sb-pool-index, sb-pool-type, sb-tc-index, sb-threshold]

sb-occ-snapshotΒΆ

Take occupancy snapshot of shared buffer.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

flags:

[admin-perm]

do:
pre

devlink-nl-pre-doit

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, sb-index]

sb-occ-max-clearΒΆ

Clear occupancy watermarks of shared buffer.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

flags:

[admin-perm]

do:
pre

devlink-nl-pre-doit

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, sb-index]

eswitch-getΒΆ

Get eswitch attributes.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

flags:

[admin-perm]

do:
pre

devlink-nl-pre-doit

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index]

reply
attributes:

[bus-name, dev-name, index, eswitch-mode, eswitch-inline-mode, eswitch-encap-mode]

eswitch-setΒΆ

Set eswitch attributes.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

flags:

[admin-perm]

do:
pre

devlink-nl-pre-doit

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, eswitch-mode, eswitch-inline-mode, eswitch-encap-mode]

dpipe-table-getΒΆ

Get dpipe table attributes.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

do:
pre

devlink-nl-pre-doit

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, dpipe-table-name]

reply
attributes:

[bus-name, dev-name, index, dpipe-tables]

dpipe-entries-getΒΆ

Get dpipe entries attributes.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

do:
pre

devlink-nl-pre-doit

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, dpipe-table-name]

reply
attributes:

[bus-name, dev-name, index, dpipe-entries]

dpipe-headers-getΒΆ

Get dpipe headers attributes.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

do:
pre

devlink-nl-pre-doit

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index]

reply
attributes:

[bus-name, dev-name, index, dpipe-headers]

dpipe-table-counters-setΒΆ

Set dpipe counter attributes.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

flags:

[admin-perm]

do:
pre

devlink-nl-pre-doit

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, dpipe-table-name, dpipe-table-counters-enabled]

resource-setΒΆ

Set resource attributes.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

flags:

[admin-perm]

do:
pre

devlink-nl-pre-doit

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, resource-id, resource-size]

resource-dumpΒΆ

Get resource attributes.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

do:
pre

devlink-nl-pre-doit-port-optional

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, port-index]

reply
attributes:

[bus-name, dev-name, index, port-index, resource-list]

dump:
request
attributes:

[bus-name, dev-name, index, resource-scope-mask]

reply
attributes:

[bus-name, dev-name, index, port-index, resource-list]

reloadΒΆ

Reload devlink.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

flags:

[admin-perm]

do:
pre

devlink-nl-pre-doit-dev-lock

post

devlink-nl-post-doit-dev-lock

request
attributes:

[bus-name, dev-name, index, reload-action, reload-limits, netns-pid, netns-fd, netns-id]

reply
attributes:

[bus-name, dev-name, index, reload-actions-performed]

param-getΒΆ

Get param instances.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

do:
pre

devlink-nl-pre-doit

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, param-name]

reply
attributes:

[bus-name, dev-name, index, param-name]

dump:
request
attributes:

[bus-name, dev-name, index]

reply
attributes:

[bus-name, dev-name, index, param-name]

param-setΒΆ

Set param instances.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

flags:

[admin-perm]

do:
pre

devlink-nl-pre-doit

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, param-name, param-type, param-value-cmode, param-reset-default]

region-getΒΆ

Get region instances.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

do:
pre

devlink-nl-pre-doit-port-optional

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, port-index, region-name]

reply
attributes:

[bus-name, dev-name, index, port-index, region-name]

dump:
request
attributes:

[bus-name, dev-name, index]

reply
attributes:

[bus-name, dev-name, index, port-index, region-name]

region-newΒΆ

Create region snapshot.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

flags:

[admin-perm]

do:
pre

devlink-nl-pre-doit-port-optional

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, port-index, region-name, region-snapshot-id]

reply
attributes:

[bus-name, dev-name, index, port-index, region-name, region-snapshot-id]

region-delΒΆ

Delete region snapshot.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

flags:

[admin-perm]

do:
pre

devlink-nl-pre-doit-port-optional

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, port-index, region-name, region-snapshot-id]

region-readΒΆ

Read region data.

attribute-set:

devlink

dont-validate:

[β€˜dump-strict’]

flags:

[admin-perm]

dump:
request
attributes:

[bus-name, dev-name, index, port-index, region-name, region-snapshot-id, region-direct, region-chunk-addr, region-chunk-len]

reply
attributes:

[bus-name, dev-name, index, port-index, region-name]

port-param-getΒΆ

Get port param instances.

attribute-set:

devlink

dont-validate:

[β€˜strict’, β€˜dump-strict’]

do:
pre

devlink-nl-pre-doit-port

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, port-index]

reply
attributes:

[bus-name, dev-name, index, port-index]

dump:
reply
attributes:

[bus-name, dev-name, index, port-index]

port-param-setΒΆ

Set port param instances.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

flags:

[admin-perm]

do:
pre

devlink-nl-pre-doit-port

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, port-index]

info-getΒΆ

Get device information, like driver name, hardware and firmware versions etc.

attribute-set:

devlink

dont-validate:

[β€˜strict’, β€˜dump’]

do:
pre

devlink-nl-pre-doit

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index]

reply
attributes:

[bus-name, dev-name, index, info-driver-name, info-serial-number, info-version-fixed, info-version-running, info-version-stored, info-board-serial-number]

dump:
reply
attributes:

[bus-name, dev-name, index, info-driver-name, info-serial-number, info-version-fixed, info-version-running, info-version-stored, info-board-serial-number]

health-reporter-getΒΆ

Get health reporter instances.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

do:
pre

devlink-nl-pre-doit-port-optional

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, port-index, health-reporter-name]

reply
attributes:

[bus-name, dev-name, index, port-index, health-reporter-name]

dump:
request
attributes:

[bus-name, dev-name, index, port-index]

reply
attributes:

[bus-name, dev-name, index, port-index, health-reporter-name]

health-reporter-setΒΆ

Set health reporter instances.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

flags:

[admin-perm]

do:
pre

devlink-nl-pre-doit-port-optional

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, port-index, health-reporter-name, health-reporter-graceful-period, health-reporter-auto-recover, health-reporter-auto-dump, health-reporter-burst-period]

health-reporter-recoverΒΆ

Recover health reporter instances.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

flags:

[admin-perm]

do:
pre

devlink-nl-pre-doit-port-optional

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, port-index, health-reporter-name]

health-reporter-diagnoseΒΆ

Diagnose health reporter instances.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

flags:

[admin-perm]

do:
pre

devlink-nl-pre-doit-port-optional

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, port-index, health-reporter-name]

health-reporter-dump-getΒΆ

Dump health reporter instances.

attribute-set:

devlink

dont-validate:

[β€˜dump-strict’]

flags:

[admin-perm]

dump:
request
attributes:

[bus-name, dev-name, index, port-index, health-reporter-name]

reply
attributes:

[fmsg]

health-reporter-dump-clearΒΆ

Clear dump of health reporter instances.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

flags:

[admin-perm]

do:
pre

devlink-nl-pre-doit-port-optional

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, port-index, health-reporter-name]

flash-updateΒΆ

Flash update devlink instances.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

flags:

[admin-perm]

do:
pre

devlink-nl-pre-doit

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, flash-update-file-name, flash-update-component, flash-update-overwrite-mask]

trap-getΒΆ

Get trap instances.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

do:
pre

devlink-nl-pre-doit

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, trap-name]

reply
attributes:

[bus-name, dev-name, index, trap-name]

dump:
request
attributes:

[bus-name, dev-name, index]

reply
attributes:

[bus-name, dev-name, index, trap-name]

trap-setΒΆ

Set trap instances.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

flags:

[admin-perm]

do:
pre

devlink-nl-pre-doit

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, trap-name, trap-action]

trap-group-getΒΆ

Get trap group instances.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

do:
pre

devlink-nl-pre-doit

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, trap-group-name]

reply
attributes:

[bus-name, dev-name, index, trap-group-name]

dump:
request
attributes:

[bus-name, dev-name, index]

reply
attributes:

[bus-name, dev-name, index, trap-group-name]

trap-group-setΒΆ

Set trap group instances.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

flags:

[admin-perm]

do:
pre

devlink-nl-pre-doit

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, trap-group-name, trap-action, trap-policer-id]

trap-policer-getΒΆ

Get trap policer instances.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

do:
pre

devlink-nl-pre-doit

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, trap-policer-id]

reply
attributes:

[bus-name, dev-name, index, trap-policer-id]

dump:
request
attributes:

[bus-name, dev-name, index]

reply
attributes:

[bus-name, dev-name, index, trap-policer-id]

trap-policer-setΒΆ

Get trap policer instances.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

flags:

[admin-perm]

do:
pre

devlink-nl-pre-doit

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, trap-policer-id, trap-policer-rate, trap-policer-burst]

health-reporter-testΒΆ

Test health reporter instances.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

flags:

[admin-perm]

do:
pre

devlink-nl-pre-doit-port-optional

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, port-index, health-reporter-name]

rate-getΒΆ

Get rate instances.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

do:
pre

devlink-nl-pre-doit

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, port-index, rate-node-name]

reply
attributes:

[bus-name, dev-name, index, port-index, rate-node-name]

dump:
request
attributes:

[bus-name, dev-name, index]

reply
attributes:

[bus-name, dev-name, index, port-index, rate-node-name]

rate-setΒΆ

Set rate instances.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

flags:

[admin-perm]

do:
pre

devlink-nl-pre-doit-parent-dev-optional

post

devlink-nl-post-doit-parent-dev-optional

request
attributes:

[bus-name, dev-name, index, rate-node-name, rate-tx-share, rate-tx-max, rate-tx-priority, rate-tx-weight, rate-parent-node-name, rate-tc-bws, parent-dev]

rate-newΒΆ

Create rate instances.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

flags:

[admin-perm]

do:
pre

devlink-nl-pre-doit-parent-dev-optional

post

devlink-nl-post-doit-parent-dev-optional

request
attributes:

[bus-name, dev-name, index, rate-node-name, rate-tx-share, rate-tx-max, rate-tx-priority, rate-tx-weight, rate-parent-node-name, rate-tc-bws, parent-dev]

rate-delΒΆ

Delete rate instances.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

flags:

[admin-perm]

do:
pre

devlink-nl-pre-doit

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, rate-node-name]

linecard-getΒΆ

Get line card instances.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

do:
pre

devlink-nl-pre-doit

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, linecard-index]

reply
attributes:

[bus-name, dev-name, index, linecard-index]

dump:
request
attributes:

[bus-name, dev-name, index]

reply
attributes:

[bus-name, dev-name, index, linecard-index]

linecard-setΒΆ

Set line card instances.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

flags:

[admin-perm]

do:
pre

devlink-nl-pre-doit

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, linecard-index, linecard-type]

selftests-getΒΆ

Get device selftest instances.

attribute-set:

devlink

dont-validate:

[β€˜strict’, β€˜dump’]

do:
pre

devlink-nl-pre-doit

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index]

reply
attributes:

[bus-name, dev-name, index]

dump:
reply
attributes:

[bus-name, dev-name, index]

selftests-runΒΆ

Run device selftest instances.

attribute-set:

devlink

dont-validate:

[β€˜strict’]

flags:

[admin-perm]

do:
pre

devlink-nl-pre-doit

post

devlink-nl-post-doit

request
attributes:

[bus-name, dev-name, index, selftests]

notify-filter-setΒΆ

Set notification messages socket filter.

attribute-set:

devlink

do:
request
attributes:

[bus-name, dev-name, index, port-index]

DefinitionsΒΆ

sb-pool-typeΒΆ

type:

enum

entries:
ingress:

egress:

port-typeΒΆ

type:

enum

entries:
notset:

auto:

eth:

ib:

port-flavourΒΆ

type:

enum

entries:
physical:

cpu:

dsa:

pci-pf:

pci-vf:

virtual:

unused:

pci-sf:

port-fn-stateΒΆ

type:

enum

entries:
inactive:

active:

port-fn-opstateΒΆ

type:

enum

entries:
detached:

attached:

port-fn-attr-capΒΆ

type:

enum

entries:
roce-bit:

migratable-bit:

ipsec-crypto-bit:

ipsec-packet-bit:

rate-typeΒΆ

type:

enum

entries:
leaf:

node:

sb-threshold-typeΒΆ

type:

enum

entries:
static:

dynamic:

eswitch-modeΒΆ

type:

enum

entries:
legacy:

switchdev:

switchdev-inactive:

eswitch-inline-modeΒΆ

type:

enum

entries:
none:

link:

network:

transport:

eswitch-encap-modeΒΆ

type:

enum

entries:
none:

basic:

dpipe-header-idΒΆ

type:

enum

entries:
ethernet:

ipv4:

ipv6:

dpipe-match-typeΒΆ

type:

enum

entries:
field-exact:

dpipe-action-typeΒΆ

type:

enum

entries:
field-modify:

dpipe-field-mapping-typeΒΆ

type:

enum

entries:
none:

ifindex:

resource-unitΒΆ

type:

enum

entries:
entry:

resource-scopeΒΆ

type:

enum

entries:
dev:

port:

reload-actionΒΆ

type:

enum

entries:
driver-reinit:

fw-activate:

param-cmodeΒΆ

type:

enum

entries:
runtime:

driverinit:

permanent:

flash-overwriteΒΆ

type:

enum

entries:
settings-bit:

identifiers-bit:

trap-actionΒΆ

type:

enum

entries:
drop:

trap:

mirror:

trap-typeΒΆ

type:

enum

entries:
drop:

exception:

control:

var-attr-typeΒΆ

type:

enum

entries:
u8:

u16:

u32:

u64:

string:

flag:

nul-string:

binary:

u64-array:

rate-tc-index-maxΒΆ

type:

const

value:

7

Attribute setsΒΆ

devlinkΒΆ

bus-name (string)ΒΆ

value:

1

dev-name (string)ΒΆ

port-index (u32)ΒΆ

port-type (u16)ΒΆ

enum:

port-type

port-desired-type (u16)ΒΆ

port-netdev-ifindex (u32)ΒΆ

port-netdev-name (string)ΒΆ

port-ibdev-name (string)ΒΆ

port-split-count (u32)ΒΆ

port-split-group (u32)ΒΆ

sb-index (u32)ΒΆ

sb-size (u32)ΒΆ

sb-ingress-pool-count (u16)ΒΆ

sb-egress-pool-count (u16)ΒΆ

sb-ingress-tc-count (u16)ΒΆ

sb-egress-tc-count (u16)ΒΆ

sb-pool-index (u16)ΒΆ

sb-pool-type (u8)ΒΆ

enum:

sb-pool-type

sb-pool-size (u32)ΒΆ

sb-pool-threshold-type (u8)ΒΆ

enum:

sb-threshold-type

sb-threshold (u32)ΒΆ

sb-tc-index (u16)ΒΆ

sb-occ-cur (u32)ΒΆ

sb-occ-max (u32)ΒΆ

eswitch-mode (u16)ΒΆ

enum:

eswitch-mode

eswitch-inline-mode (u8)ΒΆ

enum:

eswitch-inline-mode

dpipe-tables (nest)ΒΆ

nested-attributes:

dl-dpipe-tables

dpipe-table (nest)ΒΆ

multi-attr:

True

nested-attributes:

dl-dpipe-table

dpipe-table-name (string)ΒΆ

dpipe-table-size (u64)ΒΆ

dpipe-table-matches (nest)ΒΆ

nested-attributes:

dl-dpipe-table-matches

dpipe-table-actions (nest)ΒΆ

nested-attributes:

dl-dpipe-table-actions

dpipe-table-counters-enabled (u8)ΒΆ

dpipe-entries (nest)ΒΆ

nested-attributes:

dl-dpipe-entries

dpipe-entry (nest)ΒΆ

multi-attr:

True

nested-attributes:

dl-dpipe-entry

dpipe-entry-index (u64)ΒΆ

dpipe-entry-match-values (nest)ΒΆ

nested-attributes:

dl-dpipe-entry-match-values

dpipe-entry-action-values (nest)ΒΆ

nested-attributes:

dl-dpipe-entry-action-values

dpipe-entry-counter (u64)ΒΆ

dpipe-match (nest)ΒΆ

multi-attr:

True

nested-attributes:

dl-dpipe-match

dpipe-match-value (nest)ΒΆ

multi-attr:

True

nested-attributes:

dl-dpipe-match-value

dpipe-match-type (u32)ΒΆ

enum:

dpipe-match-type

dpipe-action (nest)ΒΆ

multi-attr:

True

nested-attributes:

dl-dpipe-action

dpipe-action-value (nest)ΒΆ

multi-attr:

True

nested-attributes:

dl-dpipe-action-value

dpipe-action-type (u32)ΒΆ

enum:

dpipe-action-type

dpipe-value (binary)ΒΆ

dpipe-value-mask (binary)ΒΆ

dpipe-value-mapping (u32)ΒΆ

dpipe-headers (nest)ΒΆ

nested-attributes:

dl-dpipe-headers

dpipe-header (nest)ΒΆ

multi-attr:

True

nested-attributes:

dl-dpipe-header

dpipe-header-name (string)ΒΆ

dpipe-header-id (u32)ΒΆ

enum:

dpipe-header-id

dpipe-header-fields (nest)ΒΆ

nested-attributes:

dl-dpipe-header-fields

dpipe-header-global (u8)ΒΆ

dpipe-header-index (u32)ΒΆ

dpipe-field (nest)ΒΆ

multi-attr:

True

nested-attributes:

dl-dpipe-field

dpipe-field-name (string)ΒΆ

dpipe-field-id (u32)ΒΆ

dpipe-field-bitwidth (u32)ΒΆ

dpipe-field-mapping-type (u32)ΒΆ

enum:

dpipe-field-mapping-type

pad (pad)ΒΆ

eswitch-encap-mode (u8)ΒΆ

enum:

eswitch-encap-mode

resource-list (nest)ΒΆ

nested-attributes:

dl-resource-list

resource (nest)ΒΆ

multi-attr:

True

nested-attributes:

dl-resource

resource-name (string)ΒΆ

resource-id (u64)ΒΆ

resource-size (u64)ΒΆ

resource-size-new (u64)ΒΆ

resource-size-valid (u8)ΒΆ

resource-size-min (u64)ΒΆ

resource-size-max (u64)ΒΆ

resource-size-gran (u64)ΒΆ

resource-unit (u8)ΒΆ

enum:

resource-unit

resource-occ (u64)ΒΆ

dpipe-table-resource-id (u64)ΒΆ

dpipe-table-resource-units (u64)ΒΆ

port-flavour (u16)ΒΆ

enum:

port-flavour

port-number (u32)ΒΆ

port-split-subport-number (u32)ΒΆ

param (nest)ΒΆ

nested-attributes:

dl-param

param-name (string)ΒΆ

param-generic (flag)ΒΆ

param-type (u8)ΒΆ

enum:

var-attr-type

param-value-cmode (u8)ΒΆ

enum:

param-cmode

value:

87

region-name (string)ΒΆ

region-size (u64)ΒΆ

region-snapshots (nest)ΒΆ

nested-attributes:

dl-region-snapshots

region-snapshot (nest)ΒΆ

nested-attributes:

dl-region-snapshot

region-snapshot-id (u32)ΒΆ

region-chunks (nest)ΒΆ

nested-attributes:

dl-region-chunks

region-chunk (nest)ΒΆ

nested-attributes:

dl-region-chunk

region-chunk-data (binary)ΒΆ

region-chunk-addr (u64)ΒΆ

region-chunk-len (u64)ΒΆ

info-driver-name (string)ΒΆ

info-serial-number (string)ΒΆ

info-version-fixed (nest)ΒΆ

multi-attr:

True

nested-attributes:

dl-info-version

info-version-running (nest)ΒΆ

multi-attr:

True

nested-attributes:

dl-info-version

info-version-stored (nest)ΒΆ

multi-attr:

True

nested-attributes:

dl-info-version

info-version-name (string)ΒΆ

info-version-value (string)ΒΆ

sb-pool-cell-size (u32)ΒΆ

fmsg (nest)ΒΆ

nested-attributes:

dl-fmsg

fmsg-obj-nest-start (flag)ΒΆ

fmsg-pair-nest-start (flag)ΒΆ

fmsg-arr-nest-start (flag)ΒΆ

fmsg-nest-end (flag)ΒΆ

fmsg-obj-name (string)ΒΆ

fmsg-obj-value-type (u8)ΒΆ

enum:

var-attr-type

health-reporter (nest)ΒΆ

value:

114

nested-attributes:

dl-health-reporter

health-reporter-name (string)ΒΆ

health-reporter-state (u8)ΒΆ

health-reporter-err-count (u64)ΒΆ

health-reporter-recover-count (u64)ΒΆ

health-reporter-dump-ts (u64)ΒΆ

health-reporter-graceful-period (u64)ΒΆ

health-reporter-auto-recover (u8)ΒΆ

flash-update-file-name (string)ΒΆ

flash-update-component (string)ΒΆ

flash-update-status-msg (string)ΒΆ

flash-update-status-done (u64)ΒΆ

flash-update-status-total (u64)ΒΆ

port-pci-pf-number (u16)ΒΆ

port-pci-vf-number (u16)ΒΆ

stats (nest)ΒΆ

nested-attributes:

dl-attr-stats

trap-name (string)ΒΆ

trap-action (u8)ΒΆ

enum:

trap-action

trap-type (u8)ΒΆ

enum:

trap-type

trap-generic (flag)ΒΆ

trap-metadata (nest)ΒΆ

nested-attributes:

dl-trap-metadata

trap-group-name (string)ΒΆ

reload-failed (u8)ΒΆ

health-reporter-dump-ts-ns (u64)ΒΆ

netns-fd (u32)ΒΆ

netns-pid (u32)ΒΆ

netns-id (u32)ΒΆ

health-reporter-auto-dump (u8)ΒΆ

trap-policer-id (u32)ΒΆ

trap-policer-rate (u64)ΒΆ

trap-policer-burst (u64)ΒΆ

port-function (nest)ΒΆ

nested-attributes:

dl-port-function

info-board-serial-number (string)ΒΆ

port-lanes (u32)ΒΆ

port-splittable (u8)ΒΆ

port-external (u8)ΒΆ

port-controller-number (u32)ΒΆ

flash-update-status-timeout (u64)ΒΆ

flash-update-overwrite-mask (bitfield32)ΒΆ

enum:

flash-overwrite

enum-as-flags:

True

reload-action (u8)ΒΆ

enum:

reload-action

reload-actions-performed (bitfield32)ΒΆ

enum:

reload-action

enum-as-flags:

True

reload-limits (bitfield32)ΒΆ

enum:

reload-action

enum-as-flags:

True

dev-stats (nest)ΒΆ

nested-attributes:

dl-dev-stats

reload-stats (nest)ΒΆ

nested-attributes:

dl-reload-stats

reload-stats-entry (nest)ΒΆ

multi-attr:

True

nested-attributes:

dl-reload-stats-entry

reload-stats-limit (u8)ΒΆ

reload-stats-value (u32)ΒΆ

remote-reload-stats (nest)ΒΆ

nested-attributes:

dl-reload-stats

reload-action-info (nest)ΒΆ

multi-attr:

True

nested-attributes:

dl-reload-act-info

reload-action-stats (nest)ΒΆ

multi-attr:

True

nested-attributes:

dl-reload-act-stats

port-pci-sf-number (u32)ΒΆ

rate-type (u16)ΒΆ

enum:

rate-type

rate-tx-share (u64)ΒΆ

rate-tx-max (u64)ΒΆ

rate-node-name (string)ΒΆ

rate-parent-node-name (string)ΒΆ

region-max-snapshots (u32)ΒΆ

linecard-index (u32)ΒΆ

linecard-state (u8)ΒΆ

linecard-type (string)ΒΆ

linecard-supported-types (nest)ΒΆ

nested-attributes:

dl-linecard-supported-types

selftests (nest)ΒΆ

value:

176

nested-attributes:

dl-selftest-id

rate-tx-priority (u32)ΒΆ

rate-tx-weight (u32)ΒΆ

region-direct (flag)ΒΆ

rate-tc-bws (nest)ΒΆ

multi-attr:

True

nested-attributes:

dl-rate-tc-bws

health-reporter-burst-period (u64)ΒΆ

doc:

Time (in msec) for recoveries before starting the grace period.

param-reset-default (flag)ΒΆ

doc:

Request restoring parameter to its default value.

value:

183

index (uint)ΒΆ

doc:

Unique devlink instance index.

resource-scope-mask (u32)ΒΆ

enum:

resource-scope

enum-as-flags:

True

doc:

Bitmask selecting which resource classes to include in a resource-dump response. Bit 0 (dev) selects device-level resources; bit 1 (port) selects port-level resources. When absent all classes are returned.

parent-dev (nest)ΒΆ

nested-attributes:

dl-parent-dev

doc:

Identifies the devlink instance which owns the parent rate node. Used with rate-set and rate-new to parent a rate object to a node on a different devlink instance, enabling cross-device rate scheduling. When absent, the parent node is resolved on the same instance.

dl-dev-statsΒΆ

reload-statsΒΆ

remote-reload-statsΒΆ

dl-reload-statsΒΆ

reload-action-infoΒΆ

dl-reload-act-infoΒΆ

reload-actionΒΆ

reload-action-statsΒΆ

dl-reload-act-statsΒΆ

reload-stats-entryΒΆ

dl-reload-stats-entryΒΆ

reload-stats-limitΒΆ

reload-stats-valueΒΆ

dl-info-versionΒΆ

info-version-nameΒΆ

info-version-valueΒΆ

dl-port-functionΒΆ

hw-addr (binary)ΒΆ

name-prefix:

devlink-port-function-attr-

value:

1

state (u8)ΒΆ

enum:

port-fn-state

opstate (u8)ΒΆ

enum:

port-fn-opstate

caps (bitfield32)ΒΆ

enum:

port-fn-attr-cap

enum-as-flags:

True

dl-dpipe-tablesΒΆ

dpipe-tableΒΆ

dl-dpipe-tableΒΆ

dpipe-table-nameΒΆ

dpipe-table-sizeΒΆ

dpipe-table-nameΒΆ

dpipe-table-sizeΒΆ

dpipe-table-matchesΒΆ

dpipe-table-actionsΒΆ

dpipe-table-counters-enabledΒΆ

dpipe-table-resource-idΒΆ

dpipe-table-resource-unitsΒΆ

dl-dpipe-table-matchesΒΆ

dpipe-matchΒΆ

dl-dpipe-table-actionsΒΆ

dpipe-actionΒΆ

dl-dpipe-entriesΒΆ

dpipe-entryΒΆ

dl-dpipe-entryΒΆ

dpipe-entry-indexΒΆ

dpipe-entry-match-valuesΒΆ

dpipe-entry-action-valuesΒΆ

dpipe-entry-counterΒΆ

dl-dpipe-entry-match-valuesΒΆ

dpipe-match-valueΒΆ

dl-dpipe-entry-action-valuesΒΆ

dpipe-action-valueΒΆ

dl-dpipe-matchΒΆ

dpipe-match-typeΒΆ

dpipe-header-idΒΆ

dpipe-header-globalΒΆ

dpipe-header-indexΒΆ

dpipe-field-idΒΆ

dl-dpipe-match-valueΒΆ

dpipe-matchΒΆ

dpipe-valueΒΆ

dpipe-value-maskΒΆ

dpipe-value-mappingΒΆ

dl-dpipe-actionΒΆ

dpipe-action-typeΒΆ

dpipe-header-idΒΆ

dpipe-header-globalΒΆ

dpipe-header-indexΒΆ

dpipe-field-idΒΆ

dl-dpipe-action-valueΒΆ

dpipe-actionΒΆ

dpipe-valueΒΆ

dpipe-value-maskΒΆ

dpipe-value-mappingΒΆ

dl-dpipe-headersΒΆ

dpipe-headerΒΆ

dl-dpipe-headerΒΆ

dpipe-header-nameΒΆ

dpipe-header-idΒΆ

dpipe-header-globalΒΆ

dpipe-header-fieldsΒΆ

dl-dpipe-header-fieldsΒΆ

dpipe-fieldΒΆ

dl-dpipe-fieldΒΆ

dpipe-field-nameΒΆ

dpipe-field-idΒΆ

dpipe-field-bitwidthΒΆ

dpipe-field-mapping-typeΒΆ

dl-resourceΒΆ

resource-nameΒΆ

resource-idΒΆ

resource-sizeΒΆ

resource-size-newΒΆ

resource-size-validΒΆ

resource-size-minΒΆ

resource-size-maxΒΆ

resource-size-granΒΆ

resource-unitΒΆ

resource-occΒΆ

dl-resource-listΒΆ

resourceΒΆ

dl-paramΒΆ

param-nameΒΆ

param-genericΒΆ

param-typeΒΆ

dl-region-snapshotsΒΆ

region-snapshotΒΆ

dl-region-snapshotΒΆ

region-snapshot-idΒΆ

dl-region-chunksΒΆ

region-chunkΒΆ

dl-region-chunkΒΆ

region-chunk-dataΒΆ

region-chunk-addrΒΆ

dl-fmsgΒΆ

fmsg-obj-nest-startΒΆ

fmsg-pair-nest-startΒΆ

fmsg-arr-nest-startΒΆ

fmsg-nest-endΒΆ

fmsg-obj-nameΒΆ

dl-health-reporterΒΆ

health-reporter-nameΒΆ

health-reporter-stateΒΆ

health-reporter-err-countΒΆ

health-reporter-recover-countΒΆ

health-reporter-graceful-periodΒΆ

health-reporter-auto-recoverΒΆ

health-reporter-dump-tsΒΆ

health-reporter-dump-ts-nsΒΆ

health-reporter-auto-dumpΒΆ

health-reporter-burst-periodΒΆ

dl-attr-statsΒΆ

stats-rx-packets (u64)ΒΆ

value:

0

stats-rx-bytes (u64)ΒΆ

stats-rx-dropped (u64)ΒΆ

dl-trap-metadataΒΆ

trap-metadata-type-in-port (flag)ΒΆ

value:

0

trap-metadata-type-fa-cookie (flag)ΒΆ

dl-linecard-supported-typesΒΆ

linecard-typeΒΆ

dl-selftest-idΒΆ

flash (flag)ΒΆ

dl-rate-tc-bwsΒΆ

index (u8)ΒΆ

bw (u32)ΒΆ

doc:

Specifies the bandwidth share assigned to the Traffic Class. The bandwidth for the traffic class is determined in proportion to the sum of the shares of all configured classes.

dl-parent-devΒΆ

bus-nameΒΆ

dev-nameΒΆ

indexΒΆ

©The kernel development community. | Powered by Sphinx 5.3.0 & Alabaster 0.7.16 | Page source