]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rds: update correct congestion map for loopback transport
authorMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 5 Feb 2019 00:21:28 +0000 (16:21 -0800)
committerBrian Maly <brian.maly@oracle.com>
Tue, 5 Mar 2019 22:31:36 +0000 (17:31 -0500)
commit7d3d00fa8582608951aaa6e8a4ed0caeab82aa0e
treeaa188946d2f38c83628f5aaa61ad6fb63825a283
parentca706e54e1a2c884716d2954ce17ffa438a45af7
rds: update correct congestion map for loopback transport

Loopback transport delivers data directly to the destination
socket since destination is always local to the machine.
The connection data structure passed to an internal
initializer API rds_inc_init() is from send side (unlike the
usual call to APIs from receive path when receive side
connection data structure is passed).

This inconsistency causes an update of the incorrect
congestion map when marking destination port congested when
loopback transport is used (which is when one or both end(s)
of a RDS connection has an IP loopback address).

The fix it to ensure correct map is updated, that of the
destination IP regardless of delivery coming from send side
of loopback transport or receive side of other transports.

Orabug: 29175685

Signed-off-by: Mukesh Kacker <mukesh.kacker@oracle.com>
Reviewed-by: HÃ¥kon Bugge <haakon.bugge@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
net/rds/loop.c
net/rds/recv.c