netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [bpf PATCH 0/3] bpf, sockmap ESTABLISHED state only
@ 2018-09-17 17:31 John Fastabend
  2018-09-17 17:31 ` [bpf PATCH 1/3] bpf: sockmap only allow ESTABLISHED sock state John Fastabend
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: John Fastabend @ 2018-09-17 17:31 UTC (permalink / raw)
  To: edumazet, ast, daniel; +Cc: netdev

Eric noted that using the close callback is not sufficient
to catch all transitions from ESTABLISHED state to a LISTEN
state. So this series does two things. First, only allow
adding socks in ESTABLISH state and second use unhash callback
to catch tcp_disconnect() transitions.

Thanks,
John


---

John Fastabend (3):
      bpf: sockmap only allow ESTABLISHED sock state
      bpf: sockmap, fix transition through disconnect without close
      bpf: test_maps, only support ESTABLISHED socks


 kernel/bpf/sockmap.c                    |   92 ++++++++++++++++++++++++-------
 tools/testing/selftests/bpf/test_maps.c |   10 ++-
 2 files changed, 79 insertions(+), 23 deletions(-)

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-09-18 10:11 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-17 17:31 [bpf PATCH 0/3] bpf, sockmap ESTABLISHED state only John Fastabend
2018-09-17 17:31 ` [bpf PATCH 1/3] bpf: sockmap only allow ESTABLISHED sock state John Fastabend
2018-09-17 20:49   ` Y Song
2018-09-17 17:31 ` [bpf PATCH 2/3] bpf: sockmap, fix transition through disconnect without close John Fastabend
2018-09-17 21:09   ` Y Song
2018-09-18  4:40     ` John Fastabend
2018-09-17 17:32 ` [bpf PATCH 3/3] bpf: test_maps, only support ESTABLISHED socks John Fastabend
2018-09-17 21:21   ` Y Song
2018-09-18  4:38     ` John Fastabend

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).