diff options
author | Cong Wang <[email protected]> | 2021-07-04 12:02:43 -0700 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2021-07-15 18:17:49 -0700 |
commit | 0c48eefae712c2fd91480346a07a1a9cd0f9470b (patch) | |
tree | a91ec2c9f219c4f23f842f44aa3d9826881885fe /tools/perf/scripts/python/mem-phys-addr.py | |
parent | 17edea21b38d047a10c189296c58aea9875d0d0a (diff) |
sock_map: Lift socket state restriction for datagram sockets
TCP and other connection oriented sockets have accept()
for each incoming connection on the server side, hence
they can just insert those fd's from accept() to sockmap,
which are of course established.
Now with datagram sockets begin to support sockmap and
redirection, the restriction is no longer applicable to
them, as they have no accept(). So we have to lift this
restriction for them. This is fine, because inside
bpf_sk_redirect_map() we still have another socket status
check, sock_map_redirect_allowed(), as a guard.
This also means they do not have to be removed from
sockmap when disconnecting.
Signed-off-by: Cong Wang <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions