Ability to peek full socket queue
Status from this message: Applied.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | datagram: Factor out sk queue referencingnet/ | +5 | 2 replies | |
| 2/6 | datagram: Add offset argument to __skb_recv_datagraminclude/ net/ net/ +1 more | +18 | 2 replies | |
| 3/6 | skb: Add skb_peek_next helperinclude/ | +18 | 2 replies | |
| 4/6 | sock: Introduce the SO_PEEK_OFF sock optioninclude/ include/ include/ +1 more | +40 | 2 replies | |
| 5/6 | unix: Support peeking offset for datagram and seqpacket socketsnet/ | +25 | 2 replies | |
| 6/6 | unix: Support peeking offset for stream socketsnet/ | +18 | 2 replies |
Reviews trailers per patch
5 of 6 patches have a Reviewed-by or Acked-by.
| Patch | Eric Dumazet |
|---|---|
| 1/6 | A-b |
| 2/6 | A-b |
| 3/6 | A-b |
| 4/6 | |
| 5/6 | A-b |
| 6/6 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net-next 0/6] Ability to peek full socket queue
Hi.
This is an attempt to implement the ability to read socket's queue without removing skbs from it. Using MSG_PEEK doesn't work for unix sockets, both dgram and stream.
The proposal is to implement the SO_PEEK_OFF sockopt which specifies an offset in bytes where to start peeking the data from.
I've already sent an example of how this can look, and since nobody objected about the concept itself, here's the "official" v1. This includes all the unix socket types and (hopefully) addresses locking issues David pointed out.
Signed-off-by Pavel Emelyanov <[email protected]>