Re: [PATCH next] sctp: make use of WORD_TRUNC macro

2016-09-18 Thread Marcelo Ricardo Leitner
Em 18-09-2016 23:06, David Miller escreveu: From: Marcelo Ricardo Leitner Date: Thu, 15 Sep 2016 15:12:30 -0300 No functional change. Just to avoid the usage of '&~3'. Also break the line to make it easier to read. You're reply later in this thread: "to make sure it is correctly ada

Re: [PATCH next] sctp: make use of WORD_TRUNC macro

2016-09-18 Thread David Miller
From: Marcelo Ricardo Leitner Date: Thu, 15 Sep 2016 15:12:30 -0300 > No functional change. Just to avoid the usage of '&~3'. > Also break the line to make it easier to read. You're reply later in this thread: "to make sure it is correctly adapted to some arch if necessary. (eve

Re: [PATCH next] sctp: make use of WORD_TRUNC macro

2016-09-16 Thread 'Marcelo Ricardo Leitner'
On Fri, Sep 16, 2016 at 09:51:56AM +, David Laight wrote: > From: Marcelo Ricardo Leitner > > Sent: 15 September 2016 19:13 > > No functional change. Just to avoid the usage of '&~3'. > ... > > - max_data = (asoc->pathmtu - > > - sctp_sk(asoc->base.sk)->pf->af->net_header_len - > >

RE: [PATCH next] sctp: make use of WORD_TRUNC macro

2016-09-16 Thread David Laight
From: Marcelo Ricardo Leitner > Sent: 15 September 2016 19:13 > No functional change. Just to avoid the usage of '&~3'. ... > - max_data = (asoc->pathmtu - > - sctp_sk(asoc->base.sk)->pf->af->net_header_len - > - sizeof(struct sctphdr) - sizeof(struct sctp_data_chunk)) &

[PATCH next] sctp: make use of WORD_TRUNC macro

2016-09-15 Thread Marcelo Ricardo Leitner
No functional change. Just to avoid the usage of '&~3'. Also break the line to make it easier to read. Signed-off-by: Marcelo Ricardo Leitner --- net/sctp/chunk.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/net/sctp/chunk.c b/net/sctp/chunk.c index a55e54738b81ff8