From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xin Long Subject: [PATCH net-next 0/2] sctp: fix sk_wmem_queued and use it to check for writable space Date: Wed, 17 Oct 2018 03:07:49 +0800 Message-ID: Cc: Marcelo Ricardo Leitner , Neil Horman , davem@davemloft.net To: network dev , linux-sctp@vger.kernel.org Return-path: Received: from mail-pf1-f173.google.com ([209.85.210.173]:36610 "EHLO mail-pf1-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727006AbeJQC7u (ORCPT ); Tue, 16 Oct 2018 22:59:50 -0400 Sender: netdev-owner@vger.kernel.org List-ID: sctp doesn't count and use asoc sndbuf_used, sk sk_wmem_alloc and sk_wmem_queued properly, which also causes some problem. This patchset is to improve it. Xin Long (2): sctp: count both sk and asoc sndbuf with skb truesize and sctp_chunk size sctp: use sk_wmem_queued to check for writable space include/net/sctp/constants.h | 5 ---- net/sctp/outqueue.c | 8 ++---- net/sctp/socket.c | 59 +++++++++++--------------------------------- 3 files changed, 17 insertions(+), 55 deletions(-) -- 2.1.0 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xin Long Date: Tue, 16 Oct 2018 19:07:49 +0000 Subject: [PATCH net-next 0/2] sctp: fix sk_wmem_queued and use it to check for writable space Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: network dev , linux-sctp@vger.kernel.org Cc: Marcelo Ricardo Leitner , Neil Horman , davem@davemloft.net sctp doesn't count and use asoc sndbuf_used, sk sk_wmem_alloc and sk_wmem_queued properly, which also causes some problem. This patchset is to improve it. Xin Long (2): sctp: count both sk and asoc sndbuf with skb truesize and sctp_chunk size sctp: use sk_wmem_queued to check for writable space include/net/sctp/constants.h | 5 ---- net/sctp/outqueue.c | 8 ++---- net/sctp/socket.c | 59 +++++++++++--------------------------------- 3 files changed, 17 insertions(+), 55 deletions(-) -- 2.1.0