From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Ricardo Leitner Subject: [PATCH net-next v2 0/3] sctp: Introduce sctp_flush_ctx Date: Sat, 12 May 2018 19:21:43 -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-qk0-f195.google.com ([209.85.220.195]:45929 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751934AbeELWVt (ORCPT ); Sat, 12 May 2018 18:21:49 -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. This patchset depends on 'sctp: refactor sctp_outq_flush' Changes since v1: - updated to build on top of v2 of 'sctp: refactor sctp_outq_flush' 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(-)