Logo

Linux 内核

6.16.0-rc4

快速搜索

目录

  • 开发流程
  • 提交补丁
  • 行为准则
  • 维护者手册
  • 所有开发流程文档
  • 核心 API
  • 驱动程序 API
  • 子系统
    • 核心子系统
    • 人机界面
    • 网络接口
      • 网络
      • NetLabel
      • InfiniBand
      • ISDN
      • MHI
    • 存储接口
    • 其他子系统
  • 锁定
  • 许可规则
  • 编写文档
  • 开发工具
  • 测试指南
  • 黑客指南
  • 追踪
  • 故障注入
  • Livepatching
  • Rust
  • 管理
  • 构建系统
  • 报告问题
  • 用户空间工具
  • 用户空间 API
  • 固件
  • 固件和设备树
  • CPU 架构
  • 未分类的文档
  • 翻译

本页

  • 显示源代码

Family ovs_datapath netlink 规范¶

目录

  • Family ovs_datapath netlink 规范

    • 摘要

    • 操作

      • get

      • new

      • del

    • 多播组

    • 定义

      • ovs-header

      • user-features

      • ovs-dp-stats

      • ovs-dp-megaflow-stats

    • 属性集

      • datapath

摘要¶

通过通用 netlink 进行 OVS datapath 配置。

操作¶

get¶

获取/转储 OVS 数据路径配置和状态

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¶

创建新的 OVS 数据路径

value:

1

attribute-set:

datapath

do:
request
attributes:

[name, upcall-pid, user-features]

del¶

删除现有的 OVS 数据路径

value:

2

attribute-set:

datapath

do:
request
attributes:

[name]

多播组¶

  • ovs_datapath

定义¶

ovs-header¶

type:

struct

members:
dp-ifindex (u32):

user-features¶

type:

flags

name-prefix:

ovs-dp-f-

enum-name:

None

entries:
unaligned:

允许最后一个 Netlink 属性不对齐

vport-pids:

允许数据路径将多个 Netlink PID 关联到每个 vport

tc-recirc-sharing:

允许 tc offload recirc sharing

dispatch-upcall-per-cpu:

允许每个 CPU 调度 upcall

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

属性集¶

datapath¶

name (string)¶

upcall-pid (u32)¶

doc:

upcall pid

stats (binary)¶

struct:

ovs-dp-stats

megaflow-stats (binary)¶

struct:

ovs-dp-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)¶

©内核开发社区。 | 由 Sphinx 5.3.0 和 Alabaster 0.7.16 强力驱动 | 页面源