Received: by 10.213.65.68 with SMTP id h4csp39913imn; Mon, 19 Mar 2018 18:51:24 -0700 (PDT) X-Google-Smtp-Source: AG47ELuoRIgI2LjuoKakx/VvVmGEL9SMGu10oPJYpt2XnEeLOH3zKd9+6l3S0R7nfmrDHN5mkMxg X-Received: by 2002:a17:902:7c15:: with SMTP id x21-v6mr14465418pll.3.1521510684254; Mon, 19 Mar 2018 18:51:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521510684; cv=none; d=google.com; s=arc-20160816; b=GAP50y0E0Duj5t/++HRhBOPrw2welMvZcbYpAC7XTnABkEkQzYNQwLsYtfcPc9JcvQ i7eAklmqtWrFC7zDRwyqhisgq4m9E/PRifLOOkwv8j6aTbxeqBcGfciK4pqKPDEjastZ v8hZjLWTGJ5TE9ORrqvIiDOFjyGu3JASDGbhWS1yNBl8AYRSefDnS7F9OoO4P1XoeoH7 T8hM81egp6euvXb8r8dQAroyivUMlAU78rBQubCpqAUJvYObKARZuVIJLYSoIyHeNSgQ czU9W0Z+obre4LXhA5AVOz6NOGIew/qGqDPusVoMWds623RxJdD7XRiiYLyTEIdt5xIR hPUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=8Ypt9shM3tmZ6rKwuVK8cjxNMcnDhXDaRnHb/Y3bvM8=; b=hy7FIPGWkLhTq4Z2bpLhz+JCQAH8C6jT7w4MBKl3b0bUW7Oafdv/g0EkvVC9UXSrxw vs9JuQWfFVvNDH6xxGf0YbZn8I+2+SBw/H8Xu4X8kawnNaBB2sSUqLcU29fLppBtlLdz 2B5Ni/TWerXDiKUrvRrXfGLhLrf4ccHoNmuUEpeoxbJHe2KndN0DYJKMH+kvK3dLYzib AHNerJbKTj/x+xyk0zFLCJb57fBZzL+JcELq1ki5yeh0+FHr8NLLN6O0n6yw/jMfzkSY NmCmJ+P8n3cFiixT2DLeQo/CkOmxmx6rUyS3I72uw73AJ/SzQK9wrTyM2TC9FA5UKNa8 IgHQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s1-v6si491897plr.671.2018.03.19.18.51.10; Mon, 19 Mar 2018 18:51:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S971252AbeCSUTm (ORCPT + 99 others); Mon, 19 Mar 2018 16:19:42 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:44498 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030693AbeCSSPM (ORCPT ); Mon, 19 Mar 2018 14:15:12 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 6B5A7FA8; Mon, 19 Mar 2018 18:15:11 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Felix Manlunas , Satanand Burla , "David S. Miller" , Sasha Levin Subject: [PATCH 4.4 044/134] vxlan: vxlan dev should inherit lowerdevs gso_max_size Date: Mon, 19 Mar 2018 19:05:27 +0100 Message-Id: <20180319171855.752190937@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180319171849.024066323@linuxfoundation.org> References: <20180319171849.024066323@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Felix Manlunas [ Upstream commit d6acfeb17d030bb3907e77c048b0e7783ad8e5a9 ] vxlan dev currently ignores lowerdev's gso_max_size, which adversely affects TSO performance of liquidio if it's the lowerdev. Egress TCP packets' skb->len often exceed liquidio's advertised gso_max_size. This may happen on other NIC drivers. Fix it by assigning lowerdev's gso_max_size to that of vxlan dev. Might as well do likewise for gso_max_segs. Single flow TSO throughput of liquidio as lowerdev (using iperf3): Before the patch: 139 Mbps After the patch : 8.68 Gbps Percent increase: 6,144 % Signed-off-by: Felix Manlunas Signed-off-by: Satanand Burla Signed-off-by: David S. Miller Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/net/vxlan.c | 5 +++++ 1 file changed, 5 insertions(+) --- a/drivers/net/vxlan.c +++ b/drivers/net/vxlan.c @@ -2834,6 +2834,11 @@ static int vxlan_dev_configure(struct ne needed_headroom = lowerdev->hard_header_len; } + if (lowerdev) { + dev->gso_max_size = lowerdev->gso_max_size; + dev->gso_max_segs = lowerdev->gso_max_segs; + } + if (conf->mtu) { err = __vxlan_change_mtu(dev, lowerdev, dst, conf->mtu, false); if (err)