pt

A command of the separate bcma command line; see Commands for other chip families.

Physical table access.

pt list [<opt>] [<pt-match-string> ...]
[<cmd-params>] dump [<opt>] [BlockType=<block-name>]\
                    [<pt-match-string> ...]
reset <pt-match-string> [<pt-match-string> ...]
[<cmd-params>] <table-op> [<table-op> ...]

Built-in help

<table-op> := <pt-name> [<attrlist>] <entry-op> [<entry-op> ...]
<entry-op> := <op> [<opt>] [<field>=<val> ...]

The <table-op> performs physical table operation(s) through an entry
in the given physical table <pt-name>.

<cmd-params> := <param>=<val> [<param>=<val> ...] | =
  The <cmd-params> is used to configure the commit parameters for
  the physical table operations. Default is to commit the physical
  table operations in synchronous entry mode.
Current available parameters are:
  TRans=0|1: Commit in entry or transaction mode.
  TransType=Atomic|Batch: Transaction type.
                          Valid in transaction mode.
  Async=0|1: Commit in synchronous mode or asynchronous mode.
  PRIority=Normal|High: Priority level used in asynchronous mode.
  NoTiFy=Commit|Hw|All|None: Notification option in asynchronous mode.
  ScalarDisplayMode=Hex|Dec|HexDec: Display mode for scalar field.
  ArrayDisplayMode=Hex|Dec|HexDec: Display mode for array field.
  ArrayDelimiter=Comma|Newline|Space: Display style for arrays.
  FieldDelimiter=Comma|Newline|Space: Display style for fields.
  Verbose=0|1: Whether to run the command in verbose mode.
  Quiet=0|1: Set to 1 to suppress normal command output.
  ContCmdMode=0|1: Valid in transaction mode only and default value is
                   always 0. Identify multiple transaction commands in
                   continuous command mode that starts from 1 and ends
                   with 0.
  CacheBypass=0|1: Obtain entry data directly from hardware if set
                   to 1. Default value is 1.
  DEFault=0|1: Whether to save the current parameters to default.
The current command parameters can be shown and modified by using
the '=' syntax as well.

<attrlist>: attr=<attr>[,<attr>...]
  Currently supported <attr> is CACHE_BYPASS.

The valid <op>s in table <entry-op> are: set, get and modify.

<opt>: A dash followed by one or more letters.
pt list
  -l: Use long output format when listing table information.
  -b: Use brief output format when listing table information.
The number of tables listed will also be saved in the local
environment variable "$0", which can be useful for scripting.
pt dump
  -n: Show all fields of the entries with non-default value.
  -d: Only show the fields with non-default contents.
pt <table-op>
  -n: Applicable to get and lookup operation to show all fields of the
      entry if it is different from default value.
  -d: Applicable to get and lookup operation to only show the fields
      with non-default contents.

Built-in examples

list -b
list MMU
list -l ^MMU
dump VRFm
dump -n bt=ipipe
reset VRFm
VRFm set FLEX_CTR_BASE_COUNTER_IDX=0x123 BCMLT_PT_INDEX=1
VRFm attr=CACHE_BYPASS get BCMLT_PT_INDEX=1
L3_TUNNEL_KEY_BUFFERm get BCMLT_PT_INSTANCE=1 BCMLT_PT_INDEX=0
XLPORT_CONFIGr get BCMLT_PT_PORT=257 BCMLT_PT_INDEX=0
XLPORT_MODE_REGr get BCMLT_PT_PORT=0