1RIO_ROUTE_ADD_ENTRY(9) Internals RIO_ROUTE_ADD_ENTRY(9)
2
3
4
6 rio_route_add_entry - Add a route entry to a switch routing table
7
9 int rio_route_add_entry(struct rio_dev * rdev, u16 table,
10 u16 route_destid, u8 route_port, int lock);
11
13 rdev
14 RIO device
15
16 table
17 Routing table ID
18
19 route_destid
20 Destination ID to be routed
21
22 route_port
23 Port number to be routed
24
25 lock
26 lock switch device flag
27
29 Calls the switch specific add_entry method to add a route entry on a
30 switch. The route table can be specified using the table argument if a
31 switch has per port routing tables or the normal use is to specific all
32 tables (or the global table) by passing RIO_GLOBAL_TABLE in table.
33 Returns 0 on success or -EINVAL on failure.
34
36 Matt Porter <mporter@kernel.crashing.org>, <mporter@mvista.com>
37 Author.
38
40Kernel Hackers Manual 3.10 June 2019 RIO_ROUTE_ADD_ENTRY(9)