devlink-sb man page

devlink-sb — devlink shared buffer configuration

Synopsis

devlink [ OPTIONS ] sb { COMMAND | help }
OPTIONS := { -V[ersion] | -n[no-nice-names] }
devlink sb show [ DEV [ sb SB_INDEX ] ]
devlink sb pool show [ DEV [ sb SB_INDEX ]
pool POOL_INDEX ]
devlink sb pool set DEV [ sb SB_INDEX ]
pool POOL_INDEX
size POOL_SIZE
thtype { static | dynamic }
devlink sb port pool show [ DEV/PORT_INDEX [ sb SB_INDEX ]
pool POOL_INDEX ]
devlink sb port pool set DEV/PORT_INDEX [ sb SB_INDEX ]
pool POOL_INDEX
th THRESHOLD
devlink sb tc bind show [ DEV/PORT_INDEX [ sb SB_INDEX ]
tc TC_INDEX
type { ingress | egress } ]
devlink sb tc bind set DEV/PORT_INDEX [ sb SB_INDEX ]
tc TC_INDEX
type { ingress | egress }
pool POOL_INDEX
th THRESHOLD
devlink sb occupancy show { DEV | DEV/PORT_INDEX } [ sb SB_INDEX ]
devlink sb occupancy snapshot DEV [ sb SB_INDEX ]
devlink sb occupancy clearmax DEV [ sb SB_INDEX ]
devlink sb help

Description

Examples

devlink sb show

List available share buffers.

devlink sb pool show

List available pools and their config.

devlink sb port pool show pci/0000:03:00.0/1 pool 0

Show port-pool setup for specified port and pool.

sudo devlink sb port pool set pci/0000:03:00.0/1 pool 0 th 15

Change threshold for port specified port and pool.

devlink sb tc bind show pci/0000:03:00.0/1 tc 0 type ingress

Show pool binding and threshold for specified port and TC.

sudo devlink sb tc bind set pci/0000:03:00.0/1 tc 0 type ingress pool 0 th 9

Set pool binding and threshold for specified port and TC.

sudo devlink sb occupancy snapshot pci/0000:03:00.0

Make a snapshot of occupancy of shared buffer for specified devlink device.

devlink sb occupancy show pci/0000:03:00.0/1

Show occupancy for specified port from the snapshot.

sudo devlink sb occupancy clearmax pci/0000:03:00.0

Clear watermarks for shared buffer of specified devlink device.

See Also

devlink(8), devlink-dev(8), devlink-port(8), devlink-monitor(8),

Author

Jiri Pirko <jiri@mellanox.com>

Referenced By

devlink(8), devlink-dev(8), devlink-monitor(8), devlink-port(8).

14 Apr 2016 iproute2 Linux