Skip to contentSkip to conversation

Squash to "mptcp: add use_id parameter for addresses_equal v6"

PATCH New Geliang Tang 1 participant 1 message Nov 7, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Squash to "mptcp: add use_id parameter for addresses_equal v6"

Squash to:
[mptcp-next,v6,07/20] mptcp: drop lookup_by_id parameter in lookup_addr

Fix mptcp/add_addr packetdrill warnings in v6 reported by CI:

KVM Validation: normal (except selftest_mptcp_join): Unstable: 1 failed test(s): packetdrill_add_addr

---
 net/mptcp/pm_netlink.c | 2 ++
 1 file changed, 2 insertions(+)
net/mptcp/pm_netlink.c +2 -0
index 95d99927b144..d2e53836f45e 100644
@@ -72,6 +72,8 @@ bool mptcp_addresses_equal(const struct mptcp_addr_info *a,
 	if (!use_port && !use_id)
 		return true;
 
+	if (use_port && use_id)
+		return (a->port == b->port) && (a->id == b->id);
 	if (use_port)
 		return a->port == b->port;
 	return a->id == b->id;
Signature · 1 line
2.35.3