aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_ipv4.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2023-08-16 08:15:34 +0000
committerDavid S. Miller <[email protected]>2023-08-16 10:09:17 +0000
commitb4d84bce4c437c4ac1b6f7ef4d612d7d52f62cfe (patch)
treeb29d6153bd51752d08e5a669832e37286cff8fbd /net/ipv4/tcp_ipv4.c
parentinet: introduce inet->inet_flags (diff)
downloadkernel-b4d84bce4c437c4ac1b6f7ef4d612d7d52f62cfe.tar.gz
kernel-b4d84bce4c437c4ac1b6f7ef4d612d7d52f62cfe.zip
inet: set/get simple options locklessly
Now we have inet->inet_flags, we can set following options without having to hold the socket lock: IP_PKTINFO, IP_RECVTTL, IP_RECVTOS, IP_RECVOPTS, IP_RETOPTS, IP_PASSSEC, IP_RECVORIGDSTADDR, IP_RECVFRAGSIZE. ip_sock_set_pktinfo() no longer hold the socket lock. Similarly we can get the following options whithout holding the socket lock: IP_PKTINFO, IP_RECVTTL, IP_RECVTOS, IP_RECVOPTS, IP_RETOPTS, IP_PASSSEC, IP_RECVORIGDSTADDR, IP_CHECKSUM, IP_RECVFRAGSIZE. Signed-off-by: Eric Dumazet <[email protected]> Acked-by: Soheil Hassas Yeganeh <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
0 files changed, 0 insertions, 0 deletions