Thread (32 messages) 32 messages, 6 authors, 2018-08-11

Re: [PATCH v2 1/2] net/sctp: Make wrappers for accessing in/out streams

From: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Date: 2018-08-03 22:38:08
Also in: linux-sctp

On Fri, Aug 03, 2018 at 07:21:01PM +0300, Konstantin Khorenko wrote:
This patch introduces wrappers for accessing in/out streams indirectly.
This will enable to replace physically contiguous memory arrays
of streams with flexible arrays (or maybe any other appropriate
mechanism) which do memory allocation on a per-page basis.

Signed-off-by: Oleg Babin <redacted>
Signed-off-by: Konstantin Khorenko <redacted>

---
v2 changes:
 sctp_stream_in() users are updated to provide stream as an argument,
 sctp_stream_{in,out}_ptr() are now just sctp_stream_{in,out}().
---
...
 
 struct sctp_stream {
-	struct sctp_stream_out *out;
-	struct sctp_stream_in *in;
+	struct flex_array *out;
+	struct flex_array *in;
If this patch was meant to be a preparation, shouldn't this belong to
the next patch instead?

  Marcelo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help