diff options
author | Eric Dumazet <edumazet@google.com> | 2023-08-16 10:15:34 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-08-16 12:09:17 +0200 |
commit | b4d84bce4c437c4ac1b6f7ef4d612d7d52f62cfe (patch) | |
tree | b29d6153bd51752d08e5a669832e37286cff8fbd /net/ipv4/tcp_ipv4.c | |
parent | inet: introduce inet->inet_flags (diff) | |
download | linux-b4d84bce4c437c4ac1b6f7ef4d612d7d52f62cfe.tar.xz linux-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 <edumazet@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
0 files changed, 0 insertions, 0 deletions