devlink-lc(8)

devlink-lc8

Devlink line card configuration

Usage

devlink [OPTIONS] lc {COMMAND | help}

OPTIONS := -V [ersion]

devlink lc set DEV lc LC_INDEX [type {LC_TYPE | notype}]

devlink lc show [DEV [lc LC_INDEX]]

devlink lc help

Overview

devlink lc set - change line card attributes

DEV

Specifies the devlink device to operate on.

Format is: BUS_NAME/BUS_ADDRESS

lc LC_INDEX

Specifies index of a line card slot to set.

type {

LC_TYPE | notype } Type of line card to provision. Each driver provides a list of supported line card types which is shown in the output of devlink lc show command.

devlink lc show - display line card attributes

DEV

Specifies the devlink device to operate on. If this and lc arguments are omitted all line cards of all devices are listed.

lc LC_INDEX

Specifies index of a line card slot to show.

Examples

devlink lc show

Shows the state of all line cards on the system.

devlink lc show pci/0000:01:00.0 lc 1

Shows the state of line card with index 1.

devlink lc set pci/0000:01:00.0 lc 1 type 16x100G

Sets type of specified line card to type 16x100G.

devlink lc set pci/0000:01:00.0 lc 1 notype

Clears provisioning on a line card.

Releases

Unchanged in 3 releases since Debian 12 (Bookworm).

  1. 12–Arch

Author

Jiri Pirko <[email protected]>

From iproute2 7.3.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.