DEVLINK-LC(8)

okay bestie, this is the manual page for devlink-lc ๐Ÿ’– it's all about devlink line card configuration ๐ŸŽ€

๐ŸŒธ SYNOPSIS ๐ŸŒธ

Here are the ways you can call it, no cap ๐Ÿ’…

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

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

okay so this one is how you change line card stuff โœจ

  • DEV โ€” this is the devlink device you wanna operate on ๐Ÿซถ

Format is:

BUS_NAME/BUS_ADDRESS
  • lc LC_INDEX โ€” the index of the line card slot you want to set ๐Ÿงš
  • type { LC_TYPE | notype } โ€” the type of line card you wanna provision ๐Ÿ‘‘ every driver brings its own list of supported line card types, and you can see them in the output of devlink lc show so go peek ๐Ÿ‘€

this one just lets you look at line card attributes, lowkey the easiest one ๐Ÿ™ˆ

  • DEV โ€” the devlink device you wanna operate on ๐Ÿ’… if you leave this AND the lc argument out, you get all the line cards from all the devices, main character energy ๐ŸŒˆ
  • lc LC_INDEX โ€” the index of the line card slot you wanna show ๐ŸŒŸ

๐Ÿ’€ EXAMPLES ๐Ÿ’€

Okay these are literally the best part, iykyk ๐Ÿ˜ญ

  • 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 ๐Ÿซง

๐Ÿ”— SEE ALSO ๐Ÿ”—

bestie, go check these out too ๐Ÿงš

๐Ÿ‘‘ AUTHOR ๐Ÿ‘‘

written by the iconic Jiri Pirko <jiri@nvidia.com> ๐Ÿ’œ


periodt, that's the whole page ๐Ÿ’… it's from iproute2, dated 20 Apr 2022, so shoutout to whoever made it. stay iconic, bestie ๐ŸŽ€๐Ÿซถโœจ

๐Ÿ“ฆ where this page comes from