From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konstantin Khorenko Subject: Re: [PATCH v2 1/2] net/sctp: Make wrappers for accessing in/out streams Date: Thu, 9 Aug 2018 11:40:52 +0300 Message-ID: References: <20180724173647.GA8881@localhost.localdomain> <20180803162102.19540-1-khorenko@virtuozzo.com> <20180803162102.19540-2-khorenko@virtuozzo.com> <20180803204011.GH5482@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: oleg.babin@gmail.com, netdev@vger.kernel.org, linux-sctp@vger.kernel.org, "David S . Miller" , Vlad Yasevich , Neil Horman , Xin Long , Andrey Ryabinin To: Marcelo Ricardo Leitner Return-path: Received: from mail-eopbgr50111.outbound.protection.outlook.com ([40.107.5.111]:38448 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727371AbeHILEm (ORCPT ); Thu, 9 Aug 2018 07:04:42 -0400 In-Reply-To: <20180803204011.GH5482@localhost.localdomain> Sender: netdev-owner@vger.kernel.org List-ID: On 08/03/2018 11:40 PM, Marcelo Ricardo Leitner wrote: > 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 >> Signed-off-by: Konstantin Khorenko >> >> --- >> 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, agree, that will be better, will move the hunk along with changes in sctp_stream_alloc_{in,out}(). Thank you!