Family ovs_datapath
netlink 规范¶
摘要¶
通过通用 netlink 进行 OVS datapath 配置。
操作¶
get¶
获取/转储 OVS 数据路径配置和状态
- value:
3
- attribute-set:
- 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:
- do:
- request
- attributes:
[
name
,upcall-pid
,user-features
]
del¶
删除现有的 OVS 数据路径
- value:
2
- attribute-set:
- do:
- request
- attributes:
[
name
]
多播组¶
ovs_datapath
定义¶
ovs-header¶
- type:
struct
- members:
- dp-ifindex (
u32
):
- dp-ifindex (
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
):
- n-hit (
ovs-dp-megaflow-stats¶
- type:
struct
- members:
- n-mask-hit (
u64
): - n-masks (
u32
): - padding (
u32
): - n-cache-hit (
u64
): - pad1 (
u64
):
- n-mask-hit (
属性集¶
datapath¶
name (string
)¶
upcall-pid (u32
)¶
- doc:
upcall pid
stats (binary
)¶
- struct:
megaflow-stats (binary
)¶
- struct:
user-features (u32
)¶
- enum:
- enum-as-flags:
True
pad (unused
)¶
masks-cache-size (u32
)¶
per-cpu-pids (binary
)¶
- sub-type:
u32