Family ovs_vport netlink 規範¶
概要¶
透過通用 netlink 進行 OVS vport 配置。
操作¶
新建¶
建立一個新的 OVS vport
- attribute-set:
- do:
- 請求
- 屬性:
[
name,type,upcall-pid,ifindex,options]
刪除¶
從資料路徑中刪除現有的 OVS vport
- attribute-set:
- do:
- 請求
- 屬性:
[
port-no,type,name]
獲取¶
獲取 / 轉儲 OVS vport 配置和狀態
- attribute-set:
- 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):
- dp-ifindex (
vport-type¶
- 型別:
列舉
- enum-name:
ovs-vport-type
- name-prefix:
ovs-vport-type-
- 條目:
unspecnetdevinternalgrevxlangeneve
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):
- rx-packets (
屬性集¶
vport-options¶
dst-port (u32)¶
extension (u32)¶
upcall-stats¶
success (u64)¶
- 值:
0
fail (u64)¶
vport¶
unspec (unused)¶
- 值:
0
port-no (u32)¶
type (u32)¶
- 列舉:
name (string)¶
options (nest)¶
- nested-attributes:
upcall-pid (binary)¶
- sub-type:
u32
stats (binary)¶
- struct:
pad (unused)¶
ifindex (u32)¶
netnsid (u32)¶
upcall-stats (nest)¶
- nested-attributes: