SMC_RNICS(8)

πŸ“¦ version 1.8.8, in opensuse-leap 16.0

πŸ’… SMC_RNICS(8) β€” like, the whole manual, bestie

ok so this is smc_rnics from the Linux Programmer's Manual β€” yes it's section 8, yes it's a sysadmin baddie, and yes I'm gonna walk you through every single line of it 🫢


✨ NAME ✨

smc_rnics β€” list, enable and disable (R)NICs as used by SMC-R and SMC-D. that's it. that's the whole job. iconic behavior tbh πŸ‘‘


🌸 SYNOPSIS 🌸

smc_rnics [-ahrv] [-d FID] [-e FID] [FID]

πŸ¦‹ DESCRIPTION πŸ¦‹

so the SMC protocol needs an (R)NIC for the (R)DMA traffic β€” like, it literally cannot function without one, no cap. use smc_rnics to handle your (R)NICs and also to identify ones that got hotplugged. main character tool for a main character protocol πŸ’–


πŸŽ€ OPTIONS πŸŽ€

by default, smc_rnics shows all the enabled (R)NICs in the system. that's the vibe check it runs automatically ✨

  • FID β€” limit output to the specified function ID (FID). just the one, bestie.
  • -a, --all β€” include disabled and unknown devices in output. the full roster, no filter πŸ”₯
  • -d, --disable FID β€” set (R)NIC FID offline. bye bye πŸ‘‹
  • -e, --enable FID β€” set (R)NIC FID online. ⚠️ careful though: devices other than (R)NICs are not displayed by default, so once you enable one it will not show up in further output unless you also pass -a or -r. it's giving "why is my device invisible" and honestly it's just doing what it said it would πŸ’€
  • -h, --help β€” display a brief smc_rnics usage information. the tutorial level 🧚
  • -I, --IB-dev β€” display IB device information.
  • -r, --rawids β€” display raw PCI vendor/device, PFT, and VFN codes in columns. note that this will also include unknown devices. raw data, no makeup, still slaying 🌈
  • -v, --version β€” display version information.

⭐ OUTPUT ⭐

ok bestie, here's what every column is actually telling you β€” do not skip this, it's the whole plot πŸ“–

πŸ’œ FID

Function ID.

πŸ’œ Power

tells you whether the PCI slot is on (1) or off (0). and yeah, if it's off, go look at option -e for how to enable a device that's offline. we discussed this πŸ’…

πŸ’œ PCI_ID

PCI ID in BDF (Bus:Device.Function) notation.

πŸ’œ PCHID

physical channel identifier β€” or, when it's an ISM device, the virtual channel identifier (VCHID). same column, two moods πŸ¦‹

πŸ’œ Type

device type in human readable form. currently there's just a single device type supported that actually is not an RDMA capable network adapter: ISM. yep. one (1) imposter in the list πŸ™ˆ

the following RDMA capable network adapters are supported though πŸ‘‡

  • Integrated_Network β€” IBM Integrated Network Adapter 100G
  • Network_Express β€” Network Express
  • RoCE_Express3 β€” RoCE Express 3
  • RoCE_Express2 β€” RoCE Express 2
  • RoCE_Express β€” RoCE Express

and psst β€” see option -r to switch to display of PCI vendor and device instead ✨

πŸ’œ PFT

PCI Function Type. it shows you a hexadecimal value with option -r, or the mapped name with option -a. pick your fighter πŸ₯Š

πŸ’œ VF

Virtual Function. indicates if the FID is a virtual function within the adapter.

πŸ’œ VFN

Virtual Function number. indicates the virtual function within the adapter.

πŸ’œ PPrt

corresponding physical port of an RNIC, if applicable. starts counting at 0 (yes, zero. programmer brain 🧠)

πŸ’œ IPrt

corresponding Infiniband port of an RNIC, if applicable. starts counting at 1 (yes, one this time. don't ask, just vibe)

πŸ’œ PNET_ID

physical network ID. it gets an asterisk * appended if it was defined via smc_pnet. little star, big meaning ⭐

πŸ’œ Net-Dev

network interface in Linux, if applicable.

πŸ’œ IB-Dev

Infiniband interface in Linux, if applicable.


πŸ”₯ RETURN CODES πŸ”₯

on success, smc_rnics returns 0. if an error occurs, a return code other than 0 is returned. classic. no notes. periodt πŸ’€


πŸ’– SEE ALSO πŸ’–

go read them, they're all part of the friend group 🫢


πŸ’‘ friendly reminder: -d and -e literally take an (R)NIC offline and online. that's real networking, bestie. be sure before you type ✨

and that's the whole page!! brought to you by smc-tools, dated October 2018 β€” yes she's vintage but she's still That Girl πŸ‘‘πŸŽ€πŸ’œ

πŸ“¦ where this page comes from