bpf, sockmap ESTABLISHED state only
Status from this message: Applied to bpf, thanks John!
Get series with b4
b4 am 20180918155826.22728.71788.stgit@john-Precision-Tower-5810Versions newest first · linked by author and title
- v4 Latest3 patches 1 replyApplied
- v33 patches 2 repliesSuperseded
- v23 patches 1 replySuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 3 patches | 5 replies | Superseded |
Patches in v4 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | bpf: sockmap only allow ESTABLISHED sock statekernel/ | +30 | 0 replies | |
| 2/3 | bpf: sockmap, fix transition through disconnect without closekernel/ | +41 | 0 replies | |
| 3/3 | bpf: test_maps, only support ESTABLISHED sockstools/ | +7 | 0 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Yonghong Song |
|---|---|
| 1/3 | A-b |
| 2/3 | A-b |
| 3/3 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [bpf PATCH v4 0/3] bpf, sockmap ESTABLISHED state only
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.
v2: added check for ESTABLISH state in hash update sockmap as well
v3: Do not release lock from unhash in error path, no lock was
used in the first place. And drop not so useful code comments
v4: convert,
if (unhash()) return unhash(); return
to if (unhash()) unhash(); return;Thanks for reviewing Yonghong I carried your ACKs forward.
---
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 | 91 ++++++++++++++++++++++++------- tools/testing/selftests/bpf/test_maps.c | 10 ++- 2 files changed, 78 insertions(+), 23 deletions(-)