Family ovs_datapath netlink specification

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

ovs-dp-stats #

  • type:

    struct

  • members:

    • n-hit (u64)

    • n-missed (u64)

    • n-lost (u64)

    • n-flows (u64)

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) #

megaflow-stats (binary) #

user-features (u32) #

pad (unused) #

masks-cache-size (u32) #

per-cpu-pids (binary) #

  • sub-type:

    u32

ifindex (u32) #

Edit this page