Logo

The Linux Kernel

6.15.0-rc5

Quick search

Contents

  • Development process
  • Submitting patches
  • Code of conduct
  • Maintainer handbook
  • All development-process docs
  • Core API
  • Driver APIs
  • Subsystems
    • Core subsystems
    • Human interfaces
    • Networking interfaces
      • Networking
      • NetLabel
      • InfiniBand
      • ISDN
      • MHI
    • Storage interfaces
    • Other subsystems
  • Locking
  • Licensing rules
  • Writing documentation
  • Development tools
  • Testing guide
  • Hacking guide
  • Tracing
  • Fault injection
  • Livepatching
  • Rust
  • Administration
  • Build system
  • Reporting issues
  • Userspace tools
  • Userspace API
  • Firmware
  • Firmware and Devicetree
  • CPU architectures
  • Unsorted documentation
  • Translations

This Page

  • Show Source

Family ovs_datapath netlink specification¶

Contents

  • Family ovs_datapath netlink specification

    • Summary

    • Operations

      • get

      • new

      • del

    • Multicast groups

    • Definitions

      • ovs-header

      • user-features

      • datapath-stats

      • megaflow-stats

    • Attribute sets

      • datapath

Summary¶

OVS datapath configuration over generic netlink.

Operations¶

get¶

Get / dump OVS data path configuration and state

value:

3

attribute-set:

datapath

do:
request
attributes:

[name]

reply
attributes:

[name, upcall-pid, stats, megaflow-stats, user-features, masks-cache-size, per-cpu-pids]

dump:
request
attributes:

[name]

reply
attributes:

[name, upcall-pid, stats, megaflow-stats, user-features, masks-cache-size, per-cpu-pids]

new¶

Create new OVS data path

value:

1

attribute-set:

datapath

do:
request
attributes:

[name, upcall-pid, user-features]

del¶

Delete existing OVS data path

value:

2

attribute-set:

datapath

do:
request
attributes:

[name]

Multicast groups¶

  • ovs_datapath

Definitions¶

ovs-header¶

type:

struct

members:
dp-ifindex (u32):

user-features¶

type:

flags

name-prefix:

ovs-dp-f-

enum-name:

None

entries:
unaligned:

Allow last Netlink attribute to be unaligned

vport-pids:

Allow datapath to associate multiple Netlink PIDs to each vport

tc-recirc-sharing:

Allow tc offload recirc sharing

dispatch-upcall-per-cpu:

Allow per-cpu dispatch of upcalls

datapath-stats¶

enum-name:

ovs-dp-stats

type:

struct

members:
n-hit (u64):

n-missed (u64):

n-lost (u64):

n-flows (u64):

megaflow-stats¶

enum-name:

ovs-dp-megaflow-stats

type:

struct

members:
n-mask-hit (u64):

n-masks (u32):

padding (u32):

n-cache-hit (u64):

pad1 (u64):

Attribute sets¶

datapath¶

name (string)¶

upcall-pid (u32)¶

doc:

upcall pid

stats (binary)¶

struct:

datapath-stats

megaflow-stats (binary)¶

struct:

megaflow-stats

user-features (u32)¶

enum:

user-features

enum-as-flags:

True

pad (unused)¶

masks-cache-size (u32)¶

per-cpu-pids (binary)¶

sub-type:

u32

ifindex (u32)¶

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