Re: [PATCH net-next 1/5] sctp: add refcnt support for sh_key

2018-03-14 Thread Marcelo Ricardo Leitner
On Thu, Mar 15, 2018 at 12:12:32AM +0800, Xin Long wrote: > On Wed, Mar 14, 2018 at 9:59 PM, Neil Horman wrote: > > On Wed, Mar 14, 2018 at 07:05:30PM +0800, Xin Long wrote: > >> With refcnt support for sh_key, chunks auth sh_keys can be decided > >> before enqueuing it.

Re: [PATCH net-next 1/5] sctp: add refcnt support for sh_key

2018-03-14 Thread Xin Long
On Wed, Mar 14, 2018 at 9:59 PM, Neil Horman wrote: > On Wed, Mar 14, 2018 at 07:05:30PM +0800, Xin Long wrote: >> With refcnt support for sh_key, chunks auth sh_keys can be decided >> before enqueuing it. Changing the active key later will not affect >> the chunks already

Re: [PATCH net-next 1/5] sctp: add refcnt support for sh_key

2018-03-14 Thread Neil Horman
On Wed, Mar 14, 2018 at 07:05:30PM +0800, Xin Long wrote: > With refcnt support for sh_key, chunks auth sh_keys can be decided > before enqueuing it. Changing the active key later will not affect > the chunks already enqueued. > > Furthermore, this is necessary when adding the support for

Re: [PATCH net-next 1/5] sctp: add refcnt support for sh_key

2018-03-14 Thread Marcelo Ricardo Leitner
On Wed, Mar 14, 2018 at 07:05:30PM +0800, Xin Long wrote: > With refcnt support for sh_key, chunks auth sh_keys can be decided > before enqueuing it. Changing the active key later will not affect > the chunks already enqueued. > > Furthermore, this is necessary when adding the support for

[PATCH net-next 1/5] sctp: add refcnt support for sh_key

2018-03-14 Thread Xin Long
With refcnt support for sh_key, chunks auth sh_keys can be decided before enqueuing it. Changing the active key later will not affect the chunks already enqueued. Furthermore, this is necessary when adding the support for authinfo for sendmsg in next patch. Note that struct sctp_chunk can't be