rds: reduce memory footprint for RDS when transport is RDMA
authorSowmini Varadhan <sowmini.varadhan@oracle.com>
Wed, 2 Aug 2017 17:34:31 +0000 (10:34 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Aug 2017 16:27:59 +0000 (09:27 -0700)
commit840df162b3eb3ec02e2613411fad1285a0017c13
tree5ec355be6696b937685350cc1bd55b13967e3cdf
parent93b1b31f87ae7c0795afc7586d28f3ed4f859d20
rds: reduce memory footprint for RDS when transport is RDMA

RDS over IB does not use multipath RDS, so the array
of additional rds_conn_path structures is always superfluous
in this case. Reduce the memory footprint of the rds module
by making this a dynamic allocation predicated on whether
the transport is mp_capable.

Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Tested-by: Efrain Galaviz <efrain.galaviz@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/connection.c
net/rds/rds.h