From patchwork Tue Sep 20 03:39:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neal Cardwell X-Patchwork-Id: 672074 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3sdT6P0jKlz9sC7 for ; Tue, 20 Sep 2016 13:40:13 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b=oH6vWcrx; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932333AbcITDkI (ORCPT ); Mon, 19 Sep 2016 23:40:08 -0400 Received: from mail-qk0-f182.google.com ([209.85.220.182]:34350 "EHLO mail-qk0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753200AbcITDjr (ORCPT ); Mon, 19 Sep 2016 23:39:47 -0400 Received: by mail-qk0-f182.google.com with SMTP id n185so4364743qke.1 for ; Mon, 19 Sep 2016 20:39:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=tJBCz+1cu6RoRo0BtaMtrHMjgm78Ulfn2YZFNqZxs+0=; b=oH6vWcrxaTvS+XsyM6PEUr3TsX7B1xe6KZYuBxsODE72MUXX4sgRLREF+Fl/BZTsl6 LhFAQqoGX4LFpPYc1NthpApZeV4kvAyvbJNtXsP4RgLpMCRFdL7kzuuAOu4UGndT5JPD PMQ97c9Gm3MAheyKcR3wWqmY0dZ1rqayCunjTRAJ2ZYqJYRU8GCK9lD7BpiGSPlsMM1h YLcC+OfTDtNlUgtfPwa1q8JevRUMInR/KErZkQe5aSh0LR80WuggN6n2iUVECQOSwJtz Hcfu9riVVST3BvPEL/yVRv4EICitUHq/LF+X8A1XdZqqhzQE9Vtp0Tq9Ml6AexlG+r0k xylA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=tJBCz+1cu6RoRo0BtaMtrHMjgm78Ulfn2YZFNqZxs+0=; b=Hy81g44+sHXYxJLtFRpmglwnmA87BF0zVb7l4U7RfRM6aN9bvgaqOXFcVt5R/iUGRn ZVb2RFqrzBdBEoV/Qmr56VQAC0Bxl5910xMss7t+dA8u0nyMKw6nc/NxIMm/z/wfXgyv 2psZL9VefKWhv4JBFrO+YJvio4huMZY5cKVOB/49qh4XRYvWsUPY10GnT+lUno3mci88 8OovNMDTRe0U8x/9dSs4I4t8v8zEUajeK42JXkHyZesvqVecDf8fhnpmjJ938lfMhGCt TzPMBz9q9buzblt7tJI5wfMtmaT3Ri3O7Lh2j9BbNKPY2bqwbE3Z93ZTe0FWioTVusYQ GVBg== X-Gm-Message-State: AE9vXwMrd1onaPWUKjQdYwERfK/XBudv0RNbS+n5EC3dpJaWOiJNDPEzOfhzDDqmi2KcqWKw X-Received: by 10.55.158.208 with SMTP id h199mr30729997qke.111.1474342786395; Mon, 19 Sep 2016 20:39:46 -0700 (PDT) Received: from joy.nyc.corp.google.com ([100.101.230.104]) by smtp.gmail.com with ESMTPSA id m4sm14901942qkf.29.2016.09.19.20.39.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 19 Sep 2016 20:39:45 -0700 (PDT) From: Neal Cardwell To: David Miller Cc: netdev@vger.kernel.org, Neal Cardwell , Van Jacobson , Yuchung Cheng , Nandita Dukkipati , Eric Dumazet , Soheil Hassas Yeganeh Subject: [PATCH v4 net-next 12/16] tcp: export tcp_mss_to_mtu() for congestion control modules Date: Mon, 19 Sep 2016 23:39:19 -0400 Message-Id: <1474342763-16715-13-git-send-email-ncardwell@google.com> X-Mailer: git-send-email 2.8.0.rc3.226.g39d4020 In-Reply-To: <1474342763-16715-1-git-send-email-ncardwell@google.com> References: <1474342763-16715-1-git-send-email-ncardwell@google.com> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Export tcp_mss_to_mtu(), so that congestion control modules can use this to help calculate a pacing rate. Signed-off-by: Van Jacobson Signed-off-by: Neal Cardwell Signed-off-by: Yuchung Cheng Signed-off-by: Nandita Dukkipati Signed-off-by: Eric Dumazet Signed-off-by: Soheil Hassas Yeganeh --- net/ipv4/tcp_output.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index 0bf3d48..7d025a7 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c @@ -1362,6 +1362,7 @@ int tcp_mss_to_mtu(struct sock *sk, int mss) } return mtu; } +EXPORT_SYMBOL(tcp_mss_to_mtu); /* MTU probing init per socket */ void tcp_mtup_init(struct sock *sk)