other versions
- wheezy 3.2.78-1
RIO_ROUTE_ADD_ENTRY(9) | Internals | RIO_ROUTE_ADD_ENTRY(9) |
NAME¶
rio_route_add_entry - Add a route entry to a switch routing tableSYNOPSIS¶
int
rio_route_add_entry(struct rio_dev * rdev,
u16 table, u16 route_destid,
u8 route_port, int lock);
ARGUMENTS¶
rdevRIO device
table
Routing table ID
route_destid
Destination ID to be routed
route_port
Port number to be routed
lock
lock switch device flag
DESCRIPTION¶
Calls the switch specific add_entry method to add a route entry on a switch. The route table can be specified using the table argument if a switch has per port routing tables or the normal use is to specific all tables (or the global table) by passing RIO_GLOBAL_TABLE in table. Returns 0 on success or -EINVAL on failure.AUTHOR¶
Matt Porter <mporter@kernel.crashing.org>, <mporter@mvista.com>Author.
COPYRIGHT¶
March 2016 | Kernel Hackers Manual 3.2. |