From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Ricardo Leitner Date: Fri, 11 May 2018 23:29:50 +0000 Subject: [PATCH net-next 0/3] sctp: Introduce sctp_flush_ctx Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: netdev@vger.kernel.org Cc: linux-sctp@vger.kernel.org, Neil Horman , Vlad Yasevich , Xin Long This struct will hold all the context used during the outq flush, so we don't have to pass lots of pointers all around. Checked on x86_64, the compiler inlines all these functions and there is no derreference added because of the struct. Marcelo Ricardo Leitner (3): sctp: add sctp_flush_ctx, a context struct on outq_flush routines sctp: add asoc and packet to sctp_flush_ctx sctp: checkpatch fixups net/sctp/outqueue.c | 259 ++++++++++++++++++++++++---------------------------- 1 file changed, 119 insertions(+), 140 deletions(-) -- 2.14.3 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Ricardo Leitner Subject: [PATCH net-next 0/3] sctp: Introduce sctp_flush_ctx Date: Fri, 11 May 2018 20:29:50 -0300 Message-ID: Cc: linux-sctp@vger.kernel.org, Neil Horman , Vlad Yasevich , Xin Long To: netdev@vger.kernel.org Return-path: Received: from mail-qt0-f193.google.com ([209.85.216.193]:41386 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752015AbeEKX37 (ORCPT ); Fri, 11 May 2018 19:29:59 -0400 Sender: netdev-owner@vger.kernel.org List-ID: This struct will hold all the context used during the outq flush, so we don't have to pass lots of pointers all around. Checked on x86_64, the compiler inlines all these functions and there is no derreference added because of the struct. Marcelo Ricardo Leitner (3): sctp: add sctp_flush_ctx, a context struct on outq_flush routines sctp: add asoc and packet to sctp_flush_ctx sctp: checkpatch fixups net/sctp/outqueue.c | 259 ++++++++++++++++++++++++---------------------------- 1 file changed, 119 insertions(+), 140 deletions(-)