Logo

Linux 内核

6.16.0-rc4

快速搜索

目录

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

本页

  • 显示源代码

Family ovs_vport netlink 规范¶

目录

  • Family ovs_vport netlink 规范

    • 概要

    • 操作

      • 新建

      • 删除

      • 获取

    • 多播组

    • 定义

      • ovs-header

      • vport-type

      • ovs-vport-stats

    • 属性集

      • vport-options

      • upcall-stats

      • vport

概要¶

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

操作¶

新建¶

创建一个新的 OVS vport

attribute-set:

vport

do:
请求
属性:

[name, type, upcall-pid, ifindex, options]

删除¶

从数据路径中删除现有的 OVS vport

attribute-set:

vport

do:
请求
属性:

[port-no, type, name]

获取¶

获取 / 转储 OVS vport 配置和状态

attribute-set:

vport

do:
请求
属性:

[name]

回复
属性:

[port-no, type, name, upcall-pid, stats, ifindex, netnsid, upcall-stats]

转储:
请求
属性:

[name]

回复
属性:

[port-no, type, name, upcall-pid, stats, ifindex, netnsid, upcall-stats]

多播组¶

  • ovs_vport

定义¶

ovs-header¶

类型:

结构体

成员:
dp-ifindex (u32):

vport-type¶

类型:

枚举

enum-name:

ovs-vport-type

name-prefix:

ovs-vport-type-

条目:
  • unspec

  • netdev

  • internal

  • gre

  • vxlan

  • geneve

ovs-vport-stats¶

类型:

结构体

成员:
rx-packets (u64):

tx-packets (u64):

rx-bytes (u64):

tx-bytes (u64):

rx-errors (u64):

tx-errors (u64):

rx-dropped (u64):

tx-dropped (u64):

属性集¶

vport-options¶

dst-port (u32)¶

extension (u32)¶

upcall-stats¶

success (u64)¶

值:

0

fail (u64)¶

vport¶

unspec (unused)¶

值:

0

port-no (u32)¶

type (u32)¶

枚举:

vport-type

name (string)¶

options (nest)¶

nested-attributes:

vport-options

upcall-pid (binary)¶

sub-type:

u32

stats (binary)¶

struct:

ovs-vport-stats

pad (unused)¶

ifindex (u32)¶

netnsid (u32)¶

upcall-stats (nest)¶

nested-attributes:

upcall-stats

©内核开发社区。 | 由 Sphinx 5.3.0 & Alabaster 0.7.16 驱动 | 页面源代码