rio_route_add_entry(9)

rio_route_add_entry9

Add a route entry to a switch routing table

Usage

int rio_route_add_entry(struct rio_dev * rdev, u16 table, u16 route_destid, u8 route_port, int lock);

Arguments

rdev

RIO device

table

Routing table ID

route_destid

Destination ID to be routed

route_port

Port number to be routed

lock

apply a hardware lock on switch device flag (1=lock, 0=no_lock)

Overview

If available calls the switch specific add_entry method to add a route entry into a switch routing table. Otherwise uses standard RT update method as defined by RapidIO specification. A specific routing table can be selected using the table argument if a switch has per port routing tables or the standard (or global) table may be used by passing RIO_GLOBAL_TABLE in table.

Returns 0 on success or -EINVAL on failure.

Releases

6 releases since Debian 4.0 (Etch); the text changed 5 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9

Author

Matt Porter <[email protected]>, <[email protected]>

Author.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.