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