]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rds: reduce memory footprint for RDS when transport is RDMA
authorKa-Cheong Poon <ka-cheong.poon@oracle.com>
Thu, 31 Aug 2017 03:16:26 +0000 (20:16 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 13 Sep 2017 04:32:56 +0000 (21:32 -0700)
commit2c91a90c5cbf418ab129d4f1fe54adaef7ea4535
tree21e23f2891447035d8b61277531a96f5b18d3e87
parentfd4c0db89e94f936e2603e175611f34d0ffa4bb1
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.

Orabug: 26412003

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>
Reviewed-by: Avinash Repaka <avinash.repaka@oracle.com>
(cherry picked from commit 840df162b3eb3ec02e2613411fad1285a0017c13)
net/rds/connection.c
net/rds/rds.h