udp: document udp_rcv_segment special case for looped packets
authorWillem de Bruijn <willemb@google.com>
Wed, 29 Jan 2020 20:20:17 +0000 (15:20 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 10 May 2020 08:31:33 +0000 (10:31 +0200)
commit8e054bd6dfc4e87a71c27f038e4b75dfc0851492
treed6867b1009c9fc8c11d1e4b7cb9b1f84807a8efc
parent2a03c23b2015c6834becd41037e7286e62d5cd17
udp: document udp_rcv_segment special case for looped packets

commit d0208bf4da97f76237300afb83c097de25645de6 upstream.

Commit 6cd021a58c18a ("udp: segment looped gso packets correctly")
fixes an issue with rare udp gso multicast packets looped onto the
receive path.

The stable backport makes the narrowest change to target only these
packets, when needed. As opposed to, say, expanding __udp_gso_segment,
which is harder to reason to be free from unintended side-effects.

But the resulting code is hardly self-describing.
Document its purpose and rationale.

Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/net/udp.h