All of lore.kernel.org
 help / color / mirror / Atom feed
* [MPTCP] [PATCH] Squash-to: "tcp: coalesce/collapse must respect MPTCP extensions"
@ 2019-12-20 18:24 Paolo Abeni
  0 siblings, 0 replies; only message in thread
From: Paolo Abeni @ 2019-12-20 18:24 UTC (permalink / raw)
  To: mptcp

[-- Attachment #1: Type: text/plain, Size: 810 bytes --]

clarify mptcp ext usage

to be added to squashed commit changelog:
"""
 v5 -> v6:
  - clarify MPTCP must always be cleared at allocation time
"""
---
 include/net/mptcp.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/net/mptcp.h b/include/net/mptcp.h
index 7d693d0a38ff..8825da7538dd 100644
--- a/include/net/mptcp.h
+++ b/include/net/mptcp.h
@@ -48,6 +48,9 @@ static inline void mptcp_skb_ext_move(struct sk_buff *to,
 static inline bool mptcp_ext_matches(const struct mptcp_ext *to_ext,
 				     const struct mptcp_ext *from_ext)
 {
+	/* MPTCP always clear the ext when adding it to the skb, so
+	 * holes do not bother us here
+	 */
 	return !from_ext ||
 	       (to_ext && from_ext &&
 	        !memcmp(from_ext, to_ext, sizeof(struct mptcp_ext)));
-- 
2.21.0

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-12-20 18:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-20 18:24 [MPTCP] [PATCH] Squash-to: "tcp: coalesce/collapse must respect MPTCP extensions" Paolo Abeni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.