]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: Remove CMSG magic numbers for tcp_recvmsg().
authorArjun Roy <arjunroy@google.com>
Thu, 21 Jan 2021 00:41:47 +0000 (16:41 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 23 Jan 2021 04:05:56 +0000 (20:05 -0800)
commitfe99f13a542f1ae2ef9f5e387837cb6cd707a150
tree5d72d8d0cc780bcce881aac3e157121f126db848
parentfaaed2ca9bb31e9f64d04ba1aed2f0c63fb308d7
tcp: Remove CMSG magic numbers for tcp_recvmsg().

At present, tcp_recvmsg() uses flags to track if any CMSGs are pending
and what those CMSGs are. These flags are currently magic numbers,
used only within tcp_recvmsg().

To prepare for receive timestamp support in tcp receive zerocopy,
gently refactor these magic numbers into enums.

Signed-off-by: Arjun Roy <arjunroy@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/tcp.c