From patchwork Mon May 14 17:34:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcelo Ricardo Leitner X-Patchwork-Id: 913158 Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="M3BalLpL"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40l7CF6SKtz9s0W for ; Tue, 15 May 2018 03:35:53 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753097AbeENRfB (ORCPT ); Mon, 14 May 2018 13:35:01 -0400 Received: from mail-qk0-f177.google.com ([209.85.220.177]:42958 "EHLO mail-qk0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751884AbeENRe7 (ORCPT ); Mon, 14 May 2018 13:34:59 -0400 Received: by mail-qk0-f177.google.com with SMTP id b22-v6so4804266qkj.9; Mon, 14 May 2018 10:34:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=AIR8lIfcvxOLxyiDzhUJx7xS7KiRAlHHQ0X/OFiiN2g=; b=M3BalLpLdUk2fa8qcEe6wFDnsyYNgHv8QGPN8CN6LV51lih80S3mCpgpHmhimr3zPu e4nl49Mi3R+rfKD7/tw3+3KPVPwy7WcX2na//c2KFJEL6oCnPnPC3E/2fxhSZqQflRXA yDoBGH93pBq1e4f2sFFSjLhbAd/qSiHiki12M6MRYbxOx2ZMyWYHS9Tvozppx5qqJmds 5oRhEJrTM07C9RH4fk94xJj8zbjimAy8LiaIkwBv5ohwYnffnDz+Qcv3uYESgXBRbOqq M+MAQAyL05ya8Kd1HllTYK84uhLbL2ucyRIi88hX8cPZH9w7fXGjQAkiBzXPZ48cNBlR /Rtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=AIR8lIfcvxOLxyiDzhUJx7xS7KiRAlHHQ0X/OFiiN2g=; b=iYB4ektUUYw73h0djEikQFgDDbG+4+USdQeeCCrBT+xdxmlMQPUbOZbHI3Cgaum/17 jdvO8LhQCPid4y7USLCQCBJMVFHZIvGRe4yirZZZvzelHoD3XklcZwwucf70BdcJMXgQ 4L7RlyPQVC2MttOpQJfv5B2gmJ2CodVpZe/msDAUuf/VmR91ud+ghbslTkTM9AF2H394 Aj6kj9aHnbuOu0sqz0SjqC9YgeHb9XacRpHFCyKcRt9xYI2igdm2OsWO1H0l0eTSOhrT 3tWOfBF+ljBNWo4MaHZ2EQdl3OxMnfc7gO/QZwZh0TJitwTcO3+HbzIbkLwyCuNl6DaB l95A== X-Gm-Message-State: ALKqPwd+Yu8ZvVesZRpWVH1+l6u5wQEmee+Dd3fPoAaY0CEuCqSj8abD 41yNHoX+IXAZMImMyTE4hGI= X-Google-Smtp-Source: AB8JxZo+TvUJkwviQsdFXg7WOez/WFXrEDoLr/j3nwdvORTndhw+xFW/dRPN0S3ZZXCNs3NEPFy2Qw== X-Received: by 2002:a37:e10f:: with SMTP id c15-v6mr9234637qkm.168.1526319298540; Mon, 14 May 2018 10:34:58 -0700 (PDT) Received: from localhost.localdomain ([45.4.239.227]) by smtp.gmail.com with ESMTPSA id i89-v6sm8210927qkh.76.2018.05.14.10.34.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 May 2018 10:34:57 -0700 (PDT) Received: by localhost.localdomain (Postfix, from userid 1000) id 79497180BC4; Mon, 14 May 2018 14:34:53 -0300 (-03) From: Marcelo Ricardo Leitner To: netdev@vger.kernel.org Cc: linux-sctp@vger.kernel.org, Neil Horman , Xin Long , Vlad Yasevich Subject: [PATCH net-next v3 0/8] sctp: refactor sctp_outq_flush Date: Mon, 14 May 2018 14:34:35 -0300 Message-Id: X-Mailer: git-send-email 2.14.3 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Currently sctp_outq_flush does many different things and arguably unrelated, such as doing transport selection and outq dequeueing. This patchset refactors it into smaller and more dedicated functions. The end behavior should be the same. The next patchset will rework the function parameters. Changes since v1: - fix build issues on patches 3 and 4, and updated 5 and 8 because of it. Changes since v2: - fixed panic if building with just up to patch 3 applied Marcelo Ricardo Leitner (8): sctp: add sctp_packet_singleton sctp: factor out sctp_outq_select_transport sctp: move the flush of ctrl chunks into its own function sctp: move outq data rtx code out of sctp_outq_flush sctp: move flushing of data chunks out of sctp_outq_flush sctp: move transport flush code out of sctp_outq_flush sctp: make use of gfp on retransmissions sctp: rework switch cases in sctp_outq_flush_data net/sctp/outqueue.c | 593 +++++++++++++++++++++++++++------------------------- 1 file changed, 311 insertions(+), 282 deletions(-) --- 2.14.3