]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit65ca753bc7ca37a197728011daf027c00dd2b357
tree5ec355be6696b937685350cc1bd55b13967e3cdf
parent188450a7b2f40c1fbbdf15a1a1a8bb830a57fc0c
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