]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
rds: ib: update WR sizes when bringing up connection
authorDag Moxnes <dag.moxnes@oracle.com>
Fri, 15 Nov 2019 08:56:01 +0000 (09:56 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 16 Nov 2019 20:59:08 +0000 (12:59 -0800)
commita36e629ee77a9df78310c972655092e41ce07ea4
tree0ee7294b0e9734aafb5b1eb3835d51e7e42b0493
parent18d647ae74116bfee38953978501cea2960a0c25
rds: ib: update WR sizes when bringing up connection

Currently WR sizes are updated from rds_ib_sysctl_max_send_wr and
rds_ib_sysctl_max_recv_wr when a connection is shut down. As a result,
a connection being down while rds_ib_sysctl_max_send_wr or
rds_ib_sysctl_max_recv_wr are updated, will not update the sizes when
it comes back up.

Move resizing of WRs to rds_ib_setup_qp so that connections will be setup
with the most current WR sizes.

Signed-off-by: Dag Moxnes <dag.moxnes@oracle.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/ib_cm.c