]> 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)
commit7f715e0d4d8c752d720285787b179b5acd4329b1
tree5ec355be6696b937685350cc1bd55b13967e3cdf
parentb5e43233e9af2cbb8c46bec31aefe7fbabacfab9
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