]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
RDS: Track transports via an array, not a list
authorAndy Grover <andy.grover@oracle.com>
Fri, 21 Aug 2009 12:28:34 +0000 (12:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Aug 2009 02:13:12 +0000 (19:13 -0700)
commit335776bd696a6bf95134baf8ad95847371e4d5f6
tree76393aa4683e02b87209981ae96ed44f9689a080
parent40d866095df3bb70ded1813f4852cab445ef678b
RDS: Track transports via an array, not a list

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: Andy Grover <andy.grover@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/ib.c
net/rds/iw.c
net/rds/rds.h
net/rds/tcp.c
net/rds/transport.c