Documentation/netlink/specs/netdev.yaml

Source file repositories/reference/linux-study-clean/Documentation/netlink/specs/netdev.yaml

File Facts

System
Linux kernel
Corpus path
Documentation/netlink/specs/netdev.yaml
Extension
.yaml
Size
24439 bytes
Lines
870
Domain
Support Tooling And Documentation
Bucket
Documentation
Inferred role
Support Tooling And Documentation: configuration, schema, or hardware description
Status
atlas-only

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

# SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
---
name: netdev

doc: >-
  netdev configuration over generic netlink.

definitions:
  -
    type: flags
    name: xdp-act
    render-max: true
    entries:
      -
        name: basic
        doc: >-
          XDP features set supported by all drivers
          (XDP_ABORTED, XDP_DROP, XDP_PASS, XDP_TX)
      -
        name: redirect
        doc: >-
          The netdev supports XDP_REDIRECT
      -
        name: ndo-xmit
        doc: >-
          This feature informs if netdev implements ndo_xdp_xmit callback.
      -
        name: xsk-zerocopy
        doc: >-
          This feature informs if netdev supports AF_XDP in zero copy mode.
      -
        name: hw-offload
        doc: >-
          This feature informs if netdev supports XDP hw offloading.
      -
        name: rx-sg
        doc: >-
          This feature informs if netdev implements non-linear XDP buffer
          support in the driver napi callback.
      -
        name: ndo-xmit-sg
        doc: >-
          This feature informs if netdev implements non-linear XDP buffer
          support in ndo_xdp_xmit callback.
  -
    type: flags
    name: xdp-rx-metadata
    entries:
      -
        name: timestamp
        doc: |
          Device is capable of exposing receive HW timestamp via
          bpf_xdp_metadata_rx_timestamp().
      -
        name: hash
        doc: |
          Device is capable of exposing receive packet hash via
          bpf_xdp_metadata_rx_hash().
      -
        name: vlan-tag
        doc: |
          Device is capable of exposing receive packet VLAN tag via
          bpf_xdp_metadata_rx_vlan_tag().
  -
    type: flags
    name: xsk-flags
    entries:
      -
        name: tx-timestamp
        doc: >-

Annotation

Implementation Notes