• Andy Grover's avatar
    RDS: Track transports via an array, not a list · 335776bd
    Andy Grover authored
    Now that transports can be loaded in arbitrary order,
    it is important for rds_trans_get_preferred() to look
    for them in a particular order, instead of walking the list
    until it finds a transport that works for a given address.
    Now, each transport registers for a specific transport slot,
    and these are ordered so that preferred transports come first,
    and then if they are not loaded, other transports are queried.
    Signed-off-by: default avatarAndy Grover <andy.grover@oracle.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    335776bd
ib.c 8.75 KB