diff options
| author | John Fastabend <[email protected]> | 2017-08-28 14:12:01 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-08-28 18:13:22 +0000 |
| commit | 78aeaaef997db7096a17d0d3572a7940ffa5c9a0 (patch) | |
| tree | 5dda1f129368bc28ab93f4f98e7d22947203ba6f /drivers/net/xen-netback/interface.c | |
| parent | bpf: harden sockmap program attach to ensure correct map type (diff) | |
| download | kernel-78aeaaef997db7096a17d0d3572a7940ffa5c9a0.tar.gz kernel-78aeaaef997db7096a17d0d3572a7940ffa5c9a0.zip | |
bpf: sockmap indicate sock events to listeners
After userspace pushes sockets into a sockmap it may not be receiving
data (assuming stream_{parser|verdict} programs are attached). But, it
may still want to manage the socks. A common pattern is to poll/select
for a POLLRDHUP event so we can close the sock.
This patch adds the logic to wake up these listeners.
Also add TCP_SYN_SENT to the list of events to handle. We don't want
to break the connection just because we happen to be in this state.
Signed-off-by: John Fastabend <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions
