Report socket shutdown state via sock-diag
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | sk: Introduce the shutdown user-to-mask routineinclude/ net/ net/ +1 more | +25 | 0 replies | |
| 2/3 | inet-diag: Get more bits for extension flaginclude/ net/ | +5 | 0 replies | |
| 3/3 | sock-diag: Report shutdown for inet and unix socketsinclude/ include/ include/ +4 more | +34 | 4 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH net-next 0/3] Report socket shutdown state via sock-diag
The sk->sk_shutdown mask (set by sys_shutdown) cannot be read from the user space. I suppose that the best API to report it is the recently added sock-diag one (as we can use it not only in the checkpoint-restore project, but also enhance the ss output with the shutdown info).
However, there's one issue with the inet-diag part of it -- we've run out of bits on the extension flags of dump request. This one is addressed in the patch #2.
Thanks,
Pavel