# Family ovs_flow netlink specification

_Peios Kernel / Internals / Netlink / specs_

> Protocol reference for the ovs_flow 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-flow-netlink-specification"></a>
<a id="rst-netlink-ovs-flow"></a>

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

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



## Summary



OVS flow configuration over generic netlink.

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



## Operations

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



### get



Get / dump OVS flow configuration and state

- **value**:

  3

- **attribute-set**:

  [flow-attrs](#rst-ovs-flow-attribute-set-flow-attrs)

- **do**:

  **request**

  - **attributes**:

    \[`key`, `ufid`, `ufid-flags`\]

  **reply**

  - **attributes**:

    \[`key`, `ufid`, `mask`, `stats`, `actions`\]

- **dump**:

  **request**

  - **attributes**:

    \[`key`, `ufid`, `ufid-flags`\]

  **reply**

  - **attributes**:

    \[`key`, `ufid`, `mask`, `stats`, `actions`\]

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



### new



Create OVS flow configuration in a data path

- **value**:

  1

- **attribute-set**:

  [flow-attrs](#rst-ovs-flow-attribute-set-flow-attrs)

- **do**:

  **request**

  - **attributes**:

    \[`key`, `ufid`, `mask`, `actions`\]

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



## Multicast groups

- ovs\_flow


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



## Definitions

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



### ovs-header

- **type**:

  struct

- **doc**:

  Header for OVS Generic Netlink messages.

- **members**:

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

    ifindex of local port for datapath (0 to make a request not specific to a datapath).

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



### ovs-flow-stats

- **type**:

  struct

- **members**:

  - **n-packets (`u64`)**:

    Number of matched packets.

  - **n-bytes (`u64`)**:

    Number of matched bytes.

<a id="rst-ovs-key-ethernet"></a>
<a id="rst-ovs-flow-definition-ovs-key-ethernet"></a>



### ovs-key-ethernet

- **type**:

  struct

- **members**:

  - **eth-src (`binary`)**

  - **eth-dst (`binary`)**

<a id="rst-ovs-key-mpls"></a>
<a id="rst-ovs-flow-definition-ovs-key-mpls"></a>



### ovs-key-mpls

- **type**:

  struct

- **members**:

  - **mpls-lse (`u32`)**

<a id="rst-ovs-key-ipv4"></a>
<a id="rst-ovs-flow-definition-ovs-key-ipv4"></a>



### ovs-key-ipv4

- **type**:

  struct

- **members**:

  - **ipv4-src (`u32`)**

  - **ipv4-dst (`u32`)**

  - **ipv4-proto (`u8`)**

  - **ipv4-tos (`u8`)**

  - **ipv4-ttl (`u8`)**

  - **ipv4-frag (`u8`)**

<a id="rst-ovs-key-ipv6"></a>
<a id="rst-ovs-flow-definition-ovs-key-ipv6"></a>



### ovs-key-ipv6

- **type**:

  struct

- **members**:

  - **ipv6-src (`binary`)**

  - **ipv6-dst (`binary`)**

  - **ipv6-label (`u32`)**

  - **ipv6-proto (`u8`)**

  - **ipv6-tclass (`u8`)**

  - **ipv6-hlimit (`u8`)**

  - **ipv6-frag (`u8`)**

<a id="rst-ovs-key-ipv6-exthdrs"></a>
<a id="rst-ovs-flow-definition-ovs-key-ipv6-exthdrs"></a>



### ovs-key-ipv6-exthdrs

- **type**:

  struct

- **members**:

  - **hdrs (`u16`)**

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



### ovs-frag-type

- **name-prefix**:

  ovs-frag-type-

- **enum-name**:

  ovs-frag-type

- **type**:

  enum

- **entries**:

  - **none**:

    Packet is not a fragment.

  - **first**:

    Packet is a fragment with offset 0.

  - **later**:

    Packet is a fragment with nonzero offset.

  - **any**

<a id="rst-ovs-key-tcp"></a>
<a id="rst-ovs-flow-definition-ovs-key-tcp"></a>



### ovs-key-tcp

- **type**:

  struct

- **members**:

  - **tcp-src (`u16`)**

  - **tcp-dst (`u16`)**

<a id="rst-ovs-key-udp"></a>
<a id="rst-ovs-flow-definition-ovs-key-udp"></a>



### ovs-key-udp

- **type**:

  struct

- **members**:

  - **udp-src (`u16`)**

  - **udp-dst (`u16`)**

<a id="rst-ovs-key-sctp"></a>
<a id="rst-ovs-flow-definition-ovs-key-sctp"></a>



### ovs-key-sctp

- **type**:

  struct

- **members**:

  - **sctp-src (`u16`)**

  - **sctp-dst (`u16`)**

<a id="rst-ovs-key-icmp"></a>
<a id="rst-ovs-flow-definition-ovs-key-icmp"></a>



### ovs-key-icmp

- **type**:

  struct

- **members**:

  - **icmp-type (`u8`)**

  - **icmp-code (`u8`)**

<a id="rst-ovs-key-arp"></a>
<a id="rst-ovs-flow-definition-ovs-key-arp"></a>



### ovs-key-arp

- **type**:

  struct

- **members**:

  - **arp-sip (`u32`)**

  - **arp-tip (`u32`)**

  - **arp-op (`u16`)**

  - **arp-sha (`binary`)**

  - **arp-tha (`binary`)**

<a id="rst-ovs-key-nd"></a>
<a id="rst-ovs-flow-definition-ovs-key-nd"></a>



### ovs-key-nd

- **type**:

  struct

- **members**:

  - **nd-target (`binary`)**

  - **nd-sll (`binary`)**

  - **nd-tll (`binary`)**

<a id="rst-ovs-key-ct-tuple-ipv4"></a>
<a id="rst-ovs-flow-definition-ovs-key-ct-tuple-ipv4"></a>



### ovs-key-ct-tuple-ipv4

- **type**:

  struct

- **members**:

  - **ipv4-src (`u32`)**

  - **ipv4-dst (`u32`)**

  - **src-port (`u16`)**

  - **dst-port (`u16`)**

  - **ipv4-proto (`u8`)**

<a id="rst-ovs-action-push-vlan"></a>
<a id="rst-ovs-flow-definition-ovs-action-push-vlan"></a>



### ovs-action-push-vlan

- **type**:

  struct

- **members**:

  - **vlan-tpid (`u16`)**:

    Tag protocol identifier (TPID) to push.

  - **vlan-tci (`u16`)**:

    Tag control identifier (TCI) to push.

<a id="rst-ovs-ufid-flags"></a>
<a id="rst-ovs-flow-definition-ovs-ufid-flags"></a>



### ovs-ufid-flags

- **name-prefix**:

  ovs-ufid-f-

- **enum-name**:

  None

- **type**:

  flags

- **entries**:

  - `omit-key`


  - `omit-mask`


  - `omit-actions`

<a id="rst-ovs-action-hash"></a>
<a id="rst-ovs-flow-definition-ovs-action-hash"></a>



### ovs-action-hash

- **type**:

  struct

- **members**:

  - **hash-alg (`u32`)**:

    Algorithm used to compute hash prior to recirculation.

  - **hash-basis (`u32`)**:

    Basis used for computing hash.

<a id="rst-ovs-hash-alg"></a>
<a id="rst-ovs-flow-definition-ovs-hash-alg"></a>



### ovs-hash-alg

- **enum-name**:

  ovs-hash-alg

- **type**:

  enum

- **doc**:

  Data path hash algorithm for computing Datapath hash. The algorithm type only specifies the fields in a flow will be used as part of the hash. Each datapath is free to use its own hash algorithm. The hash value will be opaque to the user space daemon.

- **entries**:

  - `ovs-hash-alg-l4`

<a id="rst-ovs-action-push-mpls"></a>
<a id="rst-ovs-flow-definition-ovs-action-push-mpls"></a>



### ovs-action-push-mpls

- **type**:

  struct

- **members**:

  - **mpls-lse (`u32`)**:

    MPLS label stack entry to push

  - **mpls-ethertype (`u32`)**:

    Ethertype to set in the encapsulating ethernet frame.  The only values ethertype should ever be given are ETH\_P\_MPLS\_UC and ETH\_P\_MPLS\_MC, indicating MPLS unicast or multicast. Other are rejected.

<a id="rst-ovs-action-add-mpls"></a>
<a id="rst-ovs-flow-definition-ovs-action-add-mpls"></a>



### ovs-action-add-mpls

- **type**:

  struct

- **members**:

  - **mpls-lse (`u32`)**:

    MPLS label stack entry to push

  - **mpls-ethertype (`u32`)**:

    Ethertype to set in the encapsulating ethernet frame.  The only values ethertype should ever be given are ETH\_P\_MPLS\_UC and ETH\_P\_MPLS\_MC, indicating MPLS unicast or multicast. Other are rejected.

  - **tun-flags (`u16`)**:

    MPLS tunnel attributes.

<a id="rst-ct-state-flags"></a>
<a id="rst-ovs-flow-definition-ct-state-flags"></a>



### ct-state-flags

- **enum-name**:

  None

- **type**:

  flags

- **name-prefix**:

  ovs-cs-f-

- **entries**:

  - **new**:

    Beginning of a new connection.

  - **established**:

    Part of an existing connenction

  - **related**:

    Related to an existing connection.

  - **reply-dir**:

    Flow is in the reply direction.

  - **invalid**:

    Could not track the connection.

  - **tracked**:

    Conntrack has occurred.

  - **src-nat**:

    Packet's source address/port was mangled by NAT.

  - **dst-nat**:

    Packet's destination address/port was mangled by NAT.

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



## Attribute sets

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



### flow-attrs

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



#### key (`nest`)

- **nested-attributes**:

  [key-attrs](#rst-ovs-flow-attribute-set-key-attrs)

- **doc**:

  Nested attributes specifying the flow key. Always present in notifications. Required for all requests (except dumps).

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



#### actions (`nest`)

- **nested-attributes**:

  [action-attrs](#rst-ovs-flow-attribute-set-action-attrs)

- **doc**:

  Nested attributes specifying the actions to take for packets that match the key. Always present in notifications. Required for OVS\_FLOW\_CMD\_NEW requests, optional for OVS\_FLOW\_CMD\_SET requests.  An OVS\_FLOW\_CMD\_SET without OVS\_FLOW\_ATTR\_ACTIONS will not modify the actions.  To clear the actions, an OVS\_FLOW\_ATTR\_ACTIONS without any nested attributes must be given.

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



#### stats (`binary`)

- **struct**:

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

- **doc**:

  Statistics for this flow. Present in notifications if the stats would be nonzero. Ignored in requests.

<a id="rst-tcp-flags-u8"></a>



#### tcp-flags (`u8`)

- **doc**:

  An 8-bit value giving the ORed value of all of the TCP flags seen on packets in this flow. Only present in notifications for TCP flows, and only if it would be nonzero. Ignored in requests.

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



#### used (`u64`)

- **doc**:

  A 64-bit integer giving the time, in milliseconds on the system monotonic clock, at which a packet was last processed for this flow. Only present in notifications if a packet has been processed for this flow. Ignored in requests.

<a id="rst-clear-flag"></a>



#### clear (`flag`)

- **doc**:

  If present in a OVS\_FLOW\_CMD\_SET request, clears the last-used time, accumulated TCP flags, and statistics for this flow.  Otherwise ignored in requests. Never present in notifications.

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



#### mask (`nest`)

- **nested-attributes**:

  [key-attrs](#rst-ovs-flow-attribute-set-key-attrs)

- **doc**:

  Nested attributes specifying the mask bits for wildcarded flow match. Mask bit value '1' specifies exact match with corresponding flow key bit, while mask bit value '0' specifies a wildcarded match. Omitting attribute is treated as wildcarding all corresponding fields. Optional for all requests. If not present, all flow key bits are exact match bits.

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



#### probe (`binary`)

- **doc**:

  Flow operation is a feature probe, error logging should be suppressed.

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



#### ufid (`binary`)

- **doc**:

  A value between 1-16 octets specifying a unique identifier for the flow. Causes the flow to be indexed by this value rather than the value of the OVS\_FLOW\_ATTR\_KEY attribute. Optional for all requests. Present in notifications if the flow was created with this attribute.

- **display-hint**:

  uuid

<a id="rst-ufid-flags-u32"></a>



#### ufid-flags (`u32`)

- **enum**:

  [ovs-ufid-flags](#rst-ovs-flow-definition-ovs-ufid-flags)

- **doc**:

  A 32-bit value of ORed flags that provide alternative semantics for flow installation and retrieval. Optional for all requests.

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



#### pad (`binary`)

<a id="rst-key-attrs"></a>
<a id="rst-ovs-flow-attribute-set-key-attrs"></a>



### key-attrs

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



#### encap (`nest`)

- **nested-attributes**:

  [key-attrs](#rst-ovs-flow-attribute-set-key-attrs)

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



#### priority (`u32`)

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



#### in-port (`u32`)

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



#### ethernet (`binary`)

- **struct**:

  [ovs-key-ethernet](#rst-ovs-flow-definition-ovs-key-ethernet)

- **doc**:

  struct ovs\_key\_ethernet

<a id="rst-vlan-u16"></a>



#### vlan (`u16`)

- **byte-order**:

  big-endian

<a id="rst-ethertype-u16"></a>



#### ethertype (`u16`)

- **byte-order**:

  big-endian

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



#### ipv4 (`binary`)

- **struct**:

  [ovs-key-ipv4](#rst-ovs-flow-definition-ovs-key-ipv4)

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



#### ipv6 (`binary`)

- **struct**:

  [ovs-key-ipv6](#rst-ovs-flow-definition-ovs-key-ipv6)

- **doc**:

  struct ovs\_key\_ipv6

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



#### tcp (`binary`)

- **struct**:

  [ovs-key-tcp](#rst-ovs-flow-definition-ovs-key-tcp)

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



#### udp (`binary`)

- **struct**:

  [ovs-key-udp](#rst-ovs-flow-definition-ovs-key-udp)

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



#### icmp (`binary`)

- **struct**:

  [ovs-key-icmp](#rst-ovs-flow-definition-ovs-key-icmp)

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



#### icmpv6 (`binary`)

- **struct**:

  [ovs-key-icmp](#rst-ovs-flow-definition-ovs-key-icmp)

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



#### arp (`binary`)

- **struct**:

  [ovs-key-arp](#rst-ovs-flow-definition-ovs-key-arp)

- **doc**:

  struct ovs\_key\_arp

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



#### nd (`binary`)

- **struct**:

  [ovs-key-nd](#rst-ovs-flow-definition-ovs-key-nd)

- **doc**:

  struct ovs\_key\_nd

<a id="rst-skb-mark-u32"></a>



#### skb-mark (`u32`)

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



#### tunnel (`nest`)

- **nested-attributes**:

  [tunnel-key-attrs](#rst-ovs-flow-attribute-set-tunnel-key-attrs)

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



#### sctp (`binary`)

- **struct**:

  [ovs-key-sctp](#rst-ovs-flow-definition-ovs-key-sctp)

<a id="rst-tcp-flags-u16"></a>



#### tcp-flags (`u16`)

- **byte-order**:

  big-endian

<a id="rst-dp-hash-u32"></a>



#### dp-hash (`u32`)

- **doc**:

  Value 0 indicates the hash is not computed by the datapath.

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



#### recirc-id (`u32`)

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



#### mpls (`binary`)

- **struct**:

  [ovs-key-mpls](#rst-ovs-flow-definition-ovs-key-mpls)

<a id="rst-ct-state-u32"></a>



#### ct-state (`u32`)

- **enum**:

  [ct-state-flags](#rst-ovs-flow-definition-ct-state-flags)

- **enum-as-flags**:

  True

<a id="rst-ct-zone-u16"></a>



#### ct-zone (`u16`)

- **doc**:

  connection tracking zone

<a id="rst-ct-mark-u32"></a>



#### ct-mark (`u32`)

- **doc**:

  connection tracking mark

<a id="rst-ct-labels-binary"></a>



#### ct-labels (`binary`)

- **display-hint**:

  hex

- **doc**:

  16-octet connection tracking label

<a id="rst-ct-orig-tuple-ipv4-binary"></a>



#### ct-orig-tuple-ipv4 (`binary`)

- **struct**:

  [ovs-key-ct-tuple-ipv4](#rst-ovs-flow-definition-ovs-key-ct-tuple-ipv4)

<a id="rst-ct-orig-tuple-ipv6-binary"></a>



#### ct-orig-tuple-ipv6 (`binary`)

- **doc**:

  struct ovs\_key\_ct\_tuple\_ipv6

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



#### nsh (`nest`)

- **nested-attributes**:

  [ovs-nsh-key-attrs](#rst-ovs-flow-attribute-set-ovs-nsh-key-attrs)

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



#### packet-type (`u32`)

- **byte-order**:

  big-endian

- **doc**:

  Should not be sent to the kernel

<a id="rst-nd-extensions-binary"></a>



#### nd-extensions (`binary`)

- **doc**:

  Should not be sent to the kernel

<a id="rst-tunnel-info-binary"></a>



#### tunnel-info (`binary`)

- **doc**:

  struct ip\_tunnel\_info

<a id="rst-ipv6-exthdrs-binary"></a>



#### ipv6-exthdrs (`binary`)

- **struct**:

  [ovs-key-ipv6-exthdrs](#rst-ovs-flow-definition-ovs-key-ipv6-exthdrs)

- **doc**:

  struct ovs\_key\_ipv6\_exthdr

<a id="rst-action-attrs"></a>
<a id="rst-ovs-flow-attribute-set-action-attrs"></a>



### action-attrs

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



#### output (`u32`)

- **doc**:

  ovs port number in datapath

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



#### userspace (`nest`)

- **nested-attributes**:

  [userspace-attrs](#rst-ovs-flow-attribute-set-userspace-attrs)

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



#### set (`nest`)

- **nested-attributes**:

  [key-attrs](#rst-ovs-flow-attribute-set-key-attrs)

- **doc**:

  Replaces the contents of an existing header. The single nested attribute specifies a header to modify and its value.

<a id="rst-push-vlan-binary"></a>



#### push-vlan (`binary`)

- **struct**:

  [ovs-action-push-vlan](#rst-ovs-flow-definition-ovs-action-push-vlan)

- **doc**:

  Push a new outermost 802.1Q or 802.1ad header onto the packet.

<a id="rst-pop-vlan-flag"></a>



#### pop-vlan (`flag`)

- **doc**:

  Pop the outermost 802.1Q or 802.1ad header from the packet.

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



#### sample (`nest`)

- **nested-attributes**:

  [sample-attrs](#rst-ovs-flow-attribute-set-sample-attrs)

- **doc**:

  Probabilistically executes actions, as specified in the nested attributes.

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



#### recirc (`u32`)

- **doc**:

  recirc id

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



#### hash (`binary`)

- **struct**:

  [ovs-action-hash](#rst-ovs-flow-definition-ovs-action-hash)

<a id="rst-push-mpls-binary"></a>



#### push-mpls (`binary`)

- **struct**:

  [ovs-action-push-mpls](#rst-ovs-flow-definition-ovs-action-push-mpls)

- **doc**:

  Push a new MPLS label stack entry onto the top of the packets MPLS label stack. Set the ethertype of the encapsulating frame to either ETH\_P\_MPLS\_UC or ETH\_P\_MPLS\_MC to indicate the new packet contents.

<a id="rst-pop-mpls-u16"></a>



#### pop-mpls (`u16`)

- **byte-order**:

  big-endian

- **doc**:

  ethertype

<a id="rst-set-masked-nest"></a>



#### set-masked (`nest`)

- **nested-attributes**:

  [key-attrs](#rst-ovs-flow-attribute-set-key-attrs)

- **doc**:

  Replaces the contents of an existing header. A nested attribute specifies a header to modify, its value, and a mask. For every bit set in the mask, the corresponding bit value is copied from the value to the packet header field, rest of the bits are left unchanged. The non-masked value bits must be passed in as zeroes. Masking is not supported for the OVS\_KEY\_ATTR\_TUNNEL attribute.

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



#### ct (`nest`)

- **nested-attributes**:

  [ct-attrs](#rst-ovs-flow-attribute-set-ct-attrs)

- **doc**:

  Track the connection. Populate the conntrack-related entries in the flow key.

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



#### trunc (`u32`)

- **doc**:

  struct ovs\_action\_trunc is a u32 max length

<a id="rst-push-eth-binary"></a>



#### push-eth (`binary`)

- **doc**:

  struct ovs\_action\_push\_eth

<a id="rst-pop-eth-flag"></a>



#### pop-eth (`flag`)

<a id="rst-ct-clear-flag"></a>



#### ct-clear (`flag`)

<a id="rst-push-nsh-nest"></a>



#### push-nsh (`nest`)

- **nested-attributes**:

  [ovs-nsh-key-attrs](#rst-ovs-flow-attribute-set-ovs-nsh-key-attrs)

- **doc**:

  Push NSH header to the packet.

<a id="rst-pop-nsh-flag"></a>



#### pop-nsh (`flag`)

- **doc**:

  Pop the outermost NSH header off the packet.

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



#### meter (`u32`)

- **doc**:

  Run packet through a meter, which may drop the packet, or modify the packet (e.g., change the DSCP field)

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



#### clone (`nest`)

- **nested-attributes**:

  [action-attrs](#rst-ovs-flow-attribute-set-action-attrs)

- **doc**:

  Make a copy of the packet and execute a list of actions without affecting the original packet and key.

<a id="rst-check-pkt-len-nest"></a>



#### check-pkt-len (`nest`)

- **nested-attributes**:

  [check-pkt-len-attrs](#rst-ovs-flow-attribute-set-check-pkt-len-attrs)

- **doc**:

  Check the packet length and execute a set of actions if greater than the specified packet length, else execute another set of actions.

<a id="rst-add-mpls-binary"></a>



#### add-mpls (`binary`)

- **struct**:

  [ovs-action-add-mpls](#rst-ovs-flow-definition-ovs-action-add-mpls)

- **doc**:

  Push a new MPLS label stack entry at the start of the packet or at the start of the l3 header depending on the value of l3 tunnel flag in the tun\_flags field of this OVS\_ACTION\_ATTR\_ADD\_MPLS argument.

<a id="rst-dec-ttl-nest"></a>



#### dec-ttl (`nest`)

- **nested-attributes**:

  [dec-ttl-attrs](#rst-ovs-flow-attribute-set-dec-ttl-attrs)

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



#### psample (`nest`)

- **nested-attributes**:

  [psample-attrs](#rst-ovs-flow-attribute-set-psample-attrs)

- **doc**:

  Sends a packet sample to psample for external observation.

<a id="rst-tunnel-key-attrs"></a>
<a id="rst-ovs-flow-attribute-set-tunnel-key-attrs"></a>



### tunnel-key-attrs

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



#### id (`u64`)

- **byte-order**:

  big-endian

- **value**:

  0

<a id="rst-ipv4-src-u32"></a>



#### ipv4-src (`u32`)

- **byte-order**:

  big-endian

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



#### ipv4-dst (`u32`)

- **byte-order**:

  big-endian

<a id="rst-tos-u8"></a>



#### tos (`u8`)

<a id="rst-ttl-u8"></a>



#### ttl (`u8`)

<a id="rst-dont-fragment-flag"></a>



#### dont-fragment (`flag`)

<a id="rst-csum-flag"></a>



#### csum (`flag`)

<a id="rst-oam-flag"></a>



#### oam (`flag`)

<a id="rst-geneve-opts-binary"></a>



#### geneve-opts (`binary`)

- **sub-type**:

  u32

<a id="rst-tp-src-u16"></a>



#### tp-src (`u16`)

- **byte-order**:

  big-endian

<a id="rst-tp-dst-u16"></a>



#### tp-dst (`u16`)

- **byte-order**:

  big-endian

<a id="rst-vxlan-opts-nest"></a>



#### vxlan-opts (`nest`)

- **nested-attributes**:

  [vxlan-ext-attrs](#rst-ovs-flow-attribute-set-vxlan-ext-attrs)

<a id="rst-ipv6-src-binary"></a>



#### ipv6-src (`binary`)

- **doc**:

  struct in6\_addr source IPv6 address

<a id="rst-ipv6-dst-binary"></a>



#### ipv6-dst (`binary`)

- **doc**:

  struct in6\_addr destination IPv6 address

<a id="rst-pad-binary-1"></a>



#### pad (`binary`)

<a id="rst-erspan-opts-binary"></a>



#### erspan-opts (`binary`)

- **doc**:

  struct erspan\_metadata

<a id="rst-ipv4-info-bridge-flag"></a>



#### ipv4-info-bridge (`flag`)

<a id="rst-check-pkt-len-attrs"></a>
<a id="rst-ovs-flow-attribute-set-check-pkt-len-attrs"></a>



### check-pkt-len-attrs

<a id="rst-pkt-len-u16"></a>



#### pkt-len (`u16`)

<a id="rst-actions-if-greater-nest"></a>



#### actions-if-greater (`nest`)

- **nested-attributes**:

  [action-attrs](#rst-ovs-flow-attribute-set-action-attrs)

<a id="rst-actions-if-less-equal-nest"></a>



#### actions-if-less-equal (`nest`)

- **nested-attributes**:

  [action-attrs](#rst-ovs-flow-attribute-set-action-attrs)

<a id="rst-sample-attrs"></a>
<a id="rst-ovs-flow-attribute-set-sample-attrs"></a>



### sample-attrs

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



#### probability (`u32`)

<a id="rst-actions-nest-1"></a>



#### actions (`nest`)

- **nested-attributes**:

  [action-attrs](#rst-ovs-flow-attribute-set-action-attrs)

<a id="rst-userspace-attrs"></a>
<a id="rst-ovs-flow-attribute-set-userspace-attrs"></a>



### userspace-attrs

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



#### pid (`u32`)

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



#### userdata (`binary`)

<a id="rst-egress-tun-port-u32"></a>



#### egress-tun-port (`u32`)

<a id="rst-actions-flag"></a>



#### actions (`flag`)

<a id="rst-ovs-nsh-key-attrs"></a>
<a id="rst-ovs-flow-attribute-set-ovs-nsh-key-attrs"></a>



### ovs-nsh-key-attrs

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



#### base (`binary`)

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



#### md1 (`binary`)

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



#### md2 (`binary`)

<a id="rst-ct-attrs"></a>
<a id="rst-ovs-flow-attribute-set-ct-attrs"></a>



### ct-attrs

<a id="rst-commit-flag"></a>



#### commit (`flag`)

<a id="rst-zone-u16"></a>



#### zone (`u16`)

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



#### mark (`binary`)

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



#### labels (`binary`)

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



#### helper (`string`)

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



#### nat (`nest`)

- **nested-attributes**:

  [nat-attrs](#rst-ovs-flow-attribute-set-nat-attrs)

<a id="rst-force-commit-flag"></a>



#### force-commit (`flag`)

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



#### eventmask (`u32`)

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



#### timeout (`string`)

<a id="rst-nat-attrs"></a>
<a id="rst-ovs-flow-attribute-set-nat-attrs"></a>



### nat-attrs

<a id="rst-src-flag"></a>



#### src (`flag`)

<a id="rst-dst-flag"></a>



#### dst (`flag`)

<a id="rst-ip-min-binary"></a>



#### ip-min (`binary`)

<a id="rst-ip-max-binary"></a>



#### ip-max (`binary`)

<a id="rst-proto-min-u16"></a>



#### proto-min (`u16`)

<a id="rst-proto-max-u16"></a>



#### proto-max (`u16`)

<a id="rst-persistent-flag"></a>



#### persistent (`flag`)

<a id="rst-proto-hash-flag"></a>



#### proto-hash (`flag`)

<a id="rst-proto-random-flag"></a>



#### proto-random (`flag`)

<a id="rst-dec-ttl-attrs"></a>
<a id="rst-ovs-flow-attribute-set-dec-ttl-attrs"></a>



### dec-ttl-attrs

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



#### action (`nest`)

- **nested-attributes**:

  [action-attrs](#rst-ovs-flow-attribute-set-action-attrs)

<a id="rst-vxlan-ext-attrs"></a>
<a id="rst-ovs-flow-attribute-set-vxlan-ext-attrs"></a>



### vxlan-ext-attrs

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



#### gbp (`u32`)

<a id="rst-psample-attrs"></a>
<a id="rst-ovs-flow-attribute-set-psample-attrs"></a>



### psample-attrs

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



#### group (`u32`)

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



#### cookie (`binary`)
