1RIO_ROUTE_ADD_ENTRY(9)             Internals            RIO_ROUTE_ADD_ENTRY(9)
2
3
4

NAME

6       rio_route_add_entry - Add a route entry to a switch routing table
7

SYNOPSIS

9       int rio_route_add_entry(struct rio_mport * mport,
10                               struct rio_switch * rswitch, u16 table,
11                               u16 route_destid, u8 route_port, int lock);
12

ARGUMENTS

14       mport
15           Master port to send transaction
16
17       rswitch
18           Switch device
19
20       table
21           Routing table ID
22
23       route_destid
24           Destination ID to be routed
25
26       route_port
27           Port number to be routed
28
29       lock
30           lock switch device flag
31

DESCRIPTION

33       Calls the switch specific add_entry method to add a route entry on a
34       switch. The route table can be specified using the table argument if a
35       switch has per port routing tables or the normal use is to specific all
36       tables (or the global table) by passing RIO_GLOBAL_TABLE in table.
37       Returns 0 on success or -EINVAL on failure.
38

AUTHOR

40       Matt Porter <mporter@kernel.crashing.org>, <mporter@mvista.com>
41           Author.
42
44Kernel Hackers Manual 2.6.       November 2011          RIO_ROUTE_ADD_ENTRY(9)
Impressum