From patchwork Sat Nov 25 13:18:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xin Long X-Patchwork-Id: 841241 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@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; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="QpYSBHX5"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3ykYYR5SB9z9s7F for ; Sun, 26 Nov 2017 00:19:07 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751599AbdKYNSq (ORCPT ); Sat, 25 Nov 2017 08:18:46 -0500 Received: from mail-pf0-f194.google.com ([209.85.192.194]:41436 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751548AbdKYNSp (ORCPT ); Sat, 25 Nov 2017 08:18:45 -0500 Received: by mail-pf0-f194.google.com with SMTP id j28so15452403pfk.8; Sat, 25 Nov 2017 05:18:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=raCcLuJDhJj6JNRx/DDrus1pD3y9HvirRXX4j9Lb9Is=; b=QpYSBHX5S3x4XpcDrPMOxL2L8GYuPBWMZZy60LnwTKNj2UHJzH4V1zpJLjY8J6UME8 b5Nq9bbrJLh8dG/WzfFkezQDpaMyWJyNYOfzzRasPTR1zzVZBNybdY1okv7Cnf4aomhn PkFN2SYOIViGK+95OOMCm0V50107YA40BCk+LGzqj2AnKpVkJ2gZhjAwsUGWd51Z2Pm9 ARdpRSVVbvqWCrTNZdYuKaXSBIWrcip8GzeuN7X2213zQqvT6Fq3DKFI+x5hg1bZMjWb 04cBcFmOT90xfVUfvYk/DL+CCd+RVmuOgvdGRoykhMAC4wG3nXoC4RbuLm8zePOJQekV eubg== 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=raCcLuJDhJj6JNRx/DDrus1pD3y9HvirRXX4j9Lb9Is=; b=aDFgJTRveRrjfFuK34Pdjuisr6lyFH8IISTtnaxX5rYSdB+fSaDaUSq5ZVY4fo7wAR QbEyADA0wXt33+Ktg8cgXdbq15nNzMoPF7mKviUA+bFCToEKz6VwsYSytk7SGTNYH78W VcQtT7tkLvWjaaw9KlLQS41IgJsoDGpkyXm+8XzQlp1XZyPQBudLLb5ltJJ2pllxdLAy qVKWw3JLUiUra8rCFb5HclnmyfyA1WtR7JU2J9ccFgcVIE/VgOq/mWO2OjHFZHAq9qz5 4oqNCxUIwTTEunb/OHUH7IESofngRhdVtKU0CBOjau7mz4sk4WX/Vp65UQ/9RcyoPRpg QHkw== X-Gm-Message-State: AJaThX6aPAj+Y1y2PP5HHLFLYbDA3HqvtrzbQYLwTO4XN6q3tRdaf0pt jDkkLwkD+HdyC0RbbuQzBvKeldRj X-Google-Smtp-Source: AGs4zMYxwW9IEptw0COHxe0F8qmWXQBp6OAJq02dkJgR/Oc0uEBZG/slohvf/k9GMZDFEP4eG0F1xQ== X-Received: by 10.99.105.71 with SMTP id e68mr31018954pgc.55.1511615924400; Sat, 25 Nov 2017 05:18:44 -0800 (PST) Received: from localhost ([209.132.188.80]) by smtp.gmail.com with ESMTPSA id v88sm20778354pfk.31.2017.11.25.05.18.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 25 Nov 2017 05:18:43 -0800 (PST) From: Xin Long To: network dev , linux-sctp@vger.kernel.org Cc: davem@davemloft.net, Marcelo Ricardo Leitner , Neil Horman Subject: [PATCH net 0/3] a couple of fixes for chunks abandoned in prsctp Date: Sat, 25 Nov 2017 21:18:33 +0800 Message-Id: X-Mailer: git-send-email 2.1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Now when abandoning chunks in prsctp, it doesn't consider for frags in one msg, which would cause peer can never receive the whole frags for one msg to get them reassembled, these pieces of this msg will stay in the reasm queue forever and block the following chunks' receiving. This patchset is to fix them in patch 2 and 3, and also fix another issue for prsctp in patch 1. Xin Long (3): sctp: only update outstanding_bytes for transmitted queue when doing prsctp_prune sctp: abandon the whole msg if one part of a fragmented message is abandoned sctp: do not abandon the other frags in unsent outq if one msg has outstanding frags include/net/sctp/structs.h | 3 ++- net/sctp/chunk.c | 11 +++++++++++ net/sctp/outqueue.c | 19 +++++++++++++------ 3 files changed, 26 insertions(+), 7 deletions(-) Acked-by: Neil Horman