# Family ovs_vport netlink specification

_Peios Kernel / Internals / Netlink / specs_

> Protocol reference for the ovs_vport Netlink family, generated from the Peios kernel specification.

<!-- SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) -->


<a id="rst-family-ovs-vport-netlink-specification"></a>
<a id="rst-netlink-ovs-vport"></a>

<!-- SPDX-License-Identifier: GPL-2.0 -->

<a id="rst-summary"></a>



## Summary



OVS vport configuration over generic netlink.

<a id="rst-operations"></a>



## Operations

<a id="rst-new"></a>
<a id="rst-ovs-vport-operation-new"></a>



### new



Create a new OVS vport

- **attribute-set**:

  [vport](#rst-ovs-vport-attribute-set-vport)

- **do**:

  **request**

  - **attributes**:

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

<a id="rst-del"></a>
<a id="rst-ovs-vport-operation-del"></a>



### del



Delete existing OVS vport from a data path

- **attribute-set**:

  [vport](#rst-ovs-vport-attribute-set-vport)

- **do**:

  **request**

  - **attributes**:

    \[`port-no`, `type`, `name`\]

<a id="rst-get"></a>
<a id="rst-ovs-vport-operation-get"></a>



### get



Get / dump OVS vport configuration and state

- **attribute-set**:

  [vport](#rst-ovs-vport-attribute-set-vport)

- **do**:

  **request**

  - **attributes**:

    \[`name`\]

  **reply**

  - **attributes**:

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

- **dump**:

  **request**

  - **attributes**:

    \[`name`\]

  **reply**

  - **attributes**:

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

<a id="rst-multicast-groups"></a>



## Multicast groups

- ovs\_vport


<a id="rst-definitions"></a>



## Definitions

<a id="rst-ovs-header"></a>
<a id="rst-ovs-vport-definition-ovs-header"></a>



### ovs-header

- **type**:

  struct

- **members**:

  - **dp-ifindex (`u32`)**

<a id="rst-vport-type"></a>
<a id="rst-ovs-vport-definition-vport-type"></a>



### vport-type

- **type**:

  enum

- **enum-name**:

  ovs-vport-type

- **name-prefix**:

  ovs-vport-type-

- **entries**:

  - `unspec`


  - `netdev`


  - `internal`


  - `gre`


  - `vxlan`


  - `geneve`

<a id="rst-ovs-vport-stats"></a>
<a id="rst-ovs-vport-definition-ovs-vport-stats"></a>



### ovs-vport-stats

- **type**:

  struct

- **members**:

  - **rx-packets (`u64`)**

  - **tx-packets (`u64`)**

  - **rx-bytes (`u64`)**

  - **tx-bytes (`u64`)**

  - **rx-errors (`u64`)**

  - **tx-errors (`u64`)**

  - **rx-dropped (`u64`)**

  - **tx-dropped (`u64`)**

<a id="rst-attribute-sets"></a>



## Attribute sets

<a id="rst-vport-options"></a>
<a id="rst-ovs-vport-attribute-set-vport-options"></a>



### vport-options

<a id="rst-dst-port-u32"></a>



#### dst-port (`u32`)

<a id="rst-extension-u32"></a>



#### extension (`u32`)

<a id="rst-upcall-stats"></a>
<a id="rst-ovs-vport-attribute-set-upcall-stats"></a>



### upcall-stats

<a id="rst-success-u64"></a>



#### success (`u64`)

- **value**:

  0

<a id="rst-fail-u64"></a>



#### fail (`u64`)

<a id="rst-vport"></a>
<a id="rst-ovs-vport-attribute-set-vport"></a>



### vport

<a id="rst-unspec-unused"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-port-no-u32"></a>



#### port-no (`u32`)

<a id="rst-type-u32"></a>



#### type (`u32`)

- **enum**:

  [vport-type](#rst-ovs-vport-definition-vport-type)

<a id="rst-name-string"></a>



#### name (`string`)

<a id="rst-options-nest"></a>



#### options (`nest`)

- **nested-attributes**:

  [vport-options](#rst-ovs-vport-attribute-set-vport-options)

<a id="rst-upcall-pid-binary"></a>



#### upcall-pid (`binary`)

- **sub-type**:

  u32

<a id="rst-stats-binary"></a>



#### stats (`binary`)

- **struct**:

  [ovs-vport-stats](#rst-ovs-vport-definition-ovs-vport-stats)

<a id="rst-pad-unused"></a>



#### pad (`unused`)

<a id="rst-ifindex-u32"></a>



#### ifindex (`u32`)

<a id="rst-netnsid-u32"></a>



#### netnsid (`u32`)

<a id="rst-upcall-stats-nest"></a>



#### upcall-stats (`nest`)

- **nested-attributes**:

  [upcall-stats](#rst-ovs-vport-attribute-set-upcall-stats)
