# Family team netlink specification

_Peios Kernel / Internals / Netlink / specs_

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

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

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



## Summary



Network team device driver.

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



## Operations

<a id="rst-noop"></a>
<a id="rst-team-operation-noop"></a>



### noop



No operation

- **value**:

  0

- **attribute-set**:

  [team](#rst-team-attribute-set-team)

- **dont-validate**:

  \['strict'\]

- **do**:

  **reply**

  - **attributes**:

    \[`team-ifindex`\]

<a id="rst-options-set"></a>
<a id="rst-team-operation-options-set"></a>



### options-set



Set team options

- **attribute-set**:

  [team](#rst-team-attribute-set-team)

- **dont-validate**:

  \['strict'\]

- **flags**:

  \[`admin-perm`\]

- **do**:

  **request**

  - **attributes**:

    \[`team-ifindex`, `list-option`\]

  **reply**

  - **attributes**:

    \[`team-ifindex`, `list-option`\]

<a id="rst-options-get"></a>
<a id="rst-team-operation-options-get"></a>



### options-get



Get team options info

- **attribute-set**:

  [team](#rst-team-attribute-set-team)

- **dont-validate**:

  \['strict'\]

- **flags**:

  \[`admin-perm`\]

- **do**:

  **request**

  - **attributes**:

    \[`team-ifindex`\]

  **reply**

  - **attributes**:

    \[`team-ifindex`, `list-option`\]

<a id="rst-port-list-get"></a>
<a id="rst-team-operation-port-list-get"></a>



### port-list-get



Get team ports info

- **attribute-set**:

  [team](#rst-team-attribute-set-team)

- **dont-validate**:

  \['strict'\]

- **flags**:

  \[`admin-perm`\]

- **do**:

  **request**

  - **attributes**:

    \[`team-ifindex`\]

  **reply**

  - **attributes**:

    \[`team-ifindex`, `list-port`\]

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



## Definitions

<a id="rst-string-max-len"></a>
<a id="rst-team-definition-string-max-len"></a>



### string-max-len

- **type**:

  const

- **value**:

  32

<a id="rst-genl-change-event-mc-grp-name"></a>
<a id="rst-team-definition-genl-change-event-mc-grp-name"></a>



### genl-change-event-mc-grp-name

- **type**:

  const

- **value**:

  change\_event

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



## Attribute sets

<a id="rst-team"></a>
<a id="rst-team-attribute-set-team"></a>



### team



The team nested layout of get/set msg looks like:

```text
[TEAM_ATTR_LIST_OPTION]
    [TEAM_ATTR_ITEM_OPTION]
        [TEAM_ATTR_OPTION_*], ...
    [TEAM_ATTR_ITEM_OPTION]
        [TEAM_ATTR_OPTION_*], ...
    ...
[TEAM_ATTR_LIST_PORT]
    [TEAM_ATTR_ITEM_PORT]
        [TEAM_ATTR_PORT_*], ...
    [TEAM_ATTR_ITEM_PORT]
        [TEAM_ATTR_PORT_*], ...
    ...
```

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



#### unspec (`unused`)

- **value**:

  0

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



#### team-ifindex (`u32`)

<a id="rst-list-option-nest"></a>



#### list-option (`nest`)

- **nested-attributes**:

  [item-option](#rst-team-attribute-set-item-option)

<a id="rst-list-port-nest"></a>



#### list-port (`nest`)

- **nested-attributes**:

  [item-port](#rst-team-attribute-set-item-port)

<a id="rst-item-option"></a>
<a id="rst-team-attribute-set-item-option"></a>



### item-option

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



#### option-unspec (`unused`)

- **value**:

  0

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



#### option (`nest`)

- **nested-attributes**:

  [attr-option](#rst-team-attribute-set-attr-option)

<a id="rst-attr-option"></a>
<a id="rst-team-attribute-set-attr-option"></a>



### attr-option

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



#### unspec (`unused`)

- **value**:

  0

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



#### name (`string`)

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



#### changed (`flag`)

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



#### type (`u8`)

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



#### data (`binary`)

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



#### removed (`flag`)

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



#### port-ifindex (`u32`)

- **doc**:

  for per-port options

<a id="rst-array-index-u32"></a>



#### array-index (`u32`)

- **doc**:

  for array options

<a id="rst-item-port"></a>
<a id="rst-team-attribute-set-item-port"></a>



### item-port

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



#### port-unspec (`unused`)

- **value**:

  0

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



#### port (`nest`)

- **nested-attributes**:

  [attr-port](#rst-team-attribute-set-attr-port)

<a id="rst-attr-port"></a>
<a id="rst-team-attribute-set-attr-port"></a>



### attr-port

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



#### unspec (`unused`)

- **value**:

  0

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



#### ifindex (`u32`)

<a id="rst-changed-flag-1"></a>



#### changed (`flag`)

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



#### linkup (`flag`)

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



#### speed (`u32`)

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



#### duplex (`u8`)

<a id="rst-removed-flag-1"></a>



#### removed (`flag`)
