]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit925bba24e68a97b9c7926f2df4f405af883e6d0c
tree5d72d8d0cc780bcce881aac3e157121f126db848
parent5225d5f57b3574c0954f03d8d21dfac92ea7e729
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