/* Calls the switch specific get_entry() method to read a route entry in 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.  */
static int rio_route_get_entry(struct rio_mport *mport, struct rio_switch *rswitch, u16 table, u16 route_destid, u8 *route_port)
/* Calls the switch specific get_entry() method to read a route entry in 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.  */
static int rio_route_get_entry(struct rio_mport *mport, struct rio_switch *rswitch, u16 table, u16 route_destid, u8 *route_port)
{
	return rswitch->get_entry(mport, rswitch->destid,
					rswitch->hopcount, table,
					route_destid, route_port);
}