]> 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)
commitc5643a1bd69b020c591ec8b4653e1e056aac743f
tree5d72d8d0cc780bcce881aac3e157121f126db848
parent9b11011526a5d4aea3a735f6d6c75fc191f2f7cb
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