]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDS: Fix congestion issues for loopback
authorAndy Grover <andy.grover@oracle.com>
Wed, 20 Jan 2010 23:01:05 +0000 (15:01 -0800)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 7 Jul 2015 23:41:21 +0000 (16:41 -0700)
commit886dc6d252d312914c547dd58bc4a78197d842a9
tree152190d70428887dc0d4a35edb169c897f06c19c
parentb21739dc07d7445a310a3949dfe101ea707c965f
RDS: Fix congestion issues for loopback

We have two kinds of loopback: software (via loop transport)
and hardware (via IB). sw is used for 127.0.0.1, and doesn't
support rdma ops. hw is used for sends to local device IPs,
and supports rdma. Both are used in different cases.

For both of these, when there is a congestion map update, we
want to call rds_cong_map_updated() but not actually send
anything -- since loopback local and foreign congestion maps
point to the same spot, they're already in sync.

The old code never called sw loop's xmit_cong_map(),so
rds_cong_map_updated() wasn't being called for it. sw loop
ports would not work right with the congestion monitor.

Fixing that meant that hw loopback now would send congestion maps
to itself. This is also undesirable (racy), so we check for this
case in the ib-specific xmit code.

Signed-off-by: Andy Grover <andy.grover@oracle.com>
net/rds/cong.c
net/rds/ib_send.c
net/rds/loop.c