2. Secondary Commands

Each of secondary processes is managed with sec command. It is for sending sub commands to secondary with specific ID called secondary ID.

sec command takes an secondary ID and a sub command. They must be separated with delimiter ;. Some of sub commands take additional arguments for speicfying resource owned by secondary process.

spp > sec [SEC_ID];[SUB_CMD]

2.1. status

Show running status and resources.

spp > sec 1;status
status: idling
ports:
  - 'phy:0'
  - 'phy:1'

2.2. add

Add a PMD to the secondary with resource ID.

Adding ring 0 by

spp> sec 1;add ring 0

Or adding vhost 0 by

spp> sec 1;add vhost 0

2.3. patch

Create a path between two ports, source and destination ports. This command just creates path and does not start forwarding.

spp > sec 1;patch phy:0 ring:0

2.4. forward

Start forwarding.

spp > sec 1;forward

Running status is changed from idling to running by executing it.

spp > sec 1;status
status: running
ports:
  - 'phy:0'
  - 'phy:1'

2.5. stop

Stop forwarding.

spp > sec 1;stop

Running status is changed from running to idling by executing it.

spp > sec 1;status
status: idling
ports:
  - 'phy:0'
  - 'phy:1'

2.6. del

Delete PMD added by add subcommand from the secondary.

spp> sec 1;del ring 0

2.7. exit

Terminate the secondary. For terminating all secondaries, use bye sec command instead of it.

spp> sec 1;exit