Received: by 10.223.185.116 with SMTP id b49csp1109262wrg; Sat, 3 Mar 2018 15:50:33 -0800 (PST) X-Google-Smtp-Source: AG47ELs3iN9gUJhE2TmduZBLCtQLkacw/0XXT75bKqJmHJatCnnqBP8fMWsV1Dpkds88gycloVqY X-Received: by 10.101.96.212 with SMTP id r20mr8382400pgv.139.1520121033654; Sat, 03 Mar 2018 15:50:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520121033; cv=none; d=google.com; s=arc-20160816; b=aimB0BhrYVNOXjMpXKPF5gR4OgaBtbwpQ+5+rbIG44KGnQJNimClh6qdN7gv7rFhAu oiYhuvgoZYeiy45FzlPOq9g9LyvVpMzCHxUbKqNZQrlahRdh8O2ckUJosZmJ18bPyaw4 ZfxeZqCKc8JywWzOf0wzxmAQX7o1s7DJfaTEPDZxiX4Y+d5EMLF+9/5ZoEaPzSWoaT2b m51L57J6rsvs6DWNBLvpUpJl1Jq8v/flo9pXZWUgRzgeGV3UZLDoIAC7j86ba2DZN1kU rRCE4VftOrZS6gONp+WpS1AiHdzJKVTCmrAkbhC1LemHq93cFKhLc3a7YFmL1FJIJxnM r77g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=luaoUjtODjAbvY0U9G6p91TNXVPu9WThvZ2hCRXCeKA=; b=NwSarCXllq82kRHVdTR3PUOjx6apMwWSjz+1JRFoM1nOjT0qOjWPzkemDqNr8FJrG8 4LcRT24gQnPd5O6H2Fl1rAJfD/4dl0okXL9ozC5ba3ROIU0nFdgEQurwgYoubIFFzdg4 KcVfpNmzXaA9Rwd1egcAHCxmgoYFEEgQ2qBj2PhnY3iWuYlcP2JMlQDWixY5IjQ2vcaY bUICRVlMSzz6k19/07TrE5ybW7lP+l1hJdn/IYbUyX2xB7KZmZRxLxn48Zf3jKtm2Mma T5n6KJLOgTEXl3nPJQbK0howMEeagfIpTTfHgVYbVhjDNfi2JY9JEtqNxHSZ6y++Rfig zC5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=ErgPi0Rl; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 2-v6si6971460plf.84.2018.03.03.15.50.19; Sat, 03 Mar 2018 15:50:33 -0800 (PST) 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; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=ErgPi0Rl; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934210AbeCCXt1 (ORCPT + 99 others); Sat, 3 Mar 2018 18:49:27 -0500 Received: from mail-bn3nam01on0116.outbound.protection.outlook.com ([104.47.33.116]:3173 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933463AbeCCWdy (ORCPT ); Sat, 3 Mar 2018 17:33:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=luaoUjtODjAbvY0U9G6p91TNXVPu9WThvZ2hCRXCeKA=; b=ErgPi0RlNwZ4Xyk/4AQsgwPrpdyMxA6rv2PatjWffL95o1m954rbTmoy4OwV+EPLN0rwL3NT1imk1NFV94RWZ9OHN8zcnFIcAQ0KrTrPJS3NMXHm4OKQEVgEZA17yJuC1wWwBff5yAEtDu74qyq2dcx5gOc8qU4gQmlxLmQsXQA= Received: from MW2PR2101MB1034.namprd21.prod.outlook.com (52.132.149.10) by MW2PR2101MB1065.namprd21.prod.outlook.com (52.132.149.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.567.2; Sat, 3 Mar 2018 22:33:51 +0000 Received: from MW2PR2101MB1034.namprd21.prod.outlook.com ([fe80::1d56:338f:e2b:cec0]) by MW2PR2101MB1034.namprd21.prod.outlook.com ([fe80::1d56:338f:e2b:cec0%3]) with mapi id 15.20.0567.006; Sat, 3 Mar 2018 22:33:51 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: Felix Manlunas , Satanand Burla , "David S . Miller" , Sasha Levin Subject: [PATCH AUTOSEL for 4.9 092/219] vxlan: vxlan dev should inherit lowerdev's gso_max_size Thread-Topic: [PATCH AUTOSEL for 4.9 092/219] vxlan: vxlan dev should inherit lowerdev's gso_max_size Thread-Index: AQHTsz8AmEjmugU3ckWTbBi1GRIsKw== Date: Sat, 3 Mar 2018 22:28:49 +0000 Message-ID: <20180303222716.26640-92-alexander.levin@microsoft.com> References: <20180303222716.26640-1-alexander.levin@microsoft.com> In-Reply-To: <20180303222716.26640-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;MW2PR2101MB1065;6:8U6VwJKhWK9JD4IVq8SZuxldSmtBJu4bEeHYWa4eUrze7G39FG+0eeA+vOVXx/9iJ+WtrgabyA2Wi5D7LhVi3cmOKcAS1Ygoc0IFZSzUaBBm3txlgqOZGXjuZlXkQLKYRA6LHAvnMeqgThsFKpbGqfqWUMNK6zzea/1K7g2Ewfkn1QhnGB0h9XBY4LMAZ9Z0kxPRG9I9WJIlHVg6zsrDE2+QO33eE+x6DlRzC9WZ56TZU9RUpqukqa6vKfADDgqpi0fycMd1wktUvcbf4fVXclpg9EMJq47q6yzycBPEFMy0FVMmEhNtiSUU8k/m+c2PDjcjycSdRJVGB9+V3BggqoXCsxBw+GFkxtlTKzJ8suCNryCvspLyFxqZbPt+vjyy;5:1/fzSXf5b8bikaxokXVfVbYwKTuKM2vvMhrHeo/cc0b1R4qAvtcryf1TlPJXe7PDl2jFiu1+O++b5jUH5hPEbnz4VXbeTNU701pYBqF74Z+4cXGTHtGUsZU0PI1scnvHf3O2H6JarHNTM6B84QKeQvO06Td4sNtx0d4HF2RxCBM=;24:pr5AtocmCmPi/EEf+AEKMh1oSvc8lICX9v/ttisY1k2roiZ1bT7NT2zX0cX2KEd3UNyoy0oW4tOYIhV/8X17cWmQlHMTCJR5KNsvWOeXTvo=;7:r12CfKEvIm+5pOEDXOdh9xlne1C9IOqmsZJYtPLEjh1x9qm7Brhlpr2MsisY7HgaENILlAcVLQr5EsQ00hoG1+aZlNIw+KIacxnp1lraQQ6I89xtxvJ9fhltuBILVYaE44E1P1LQvoclXOpH3+uB22JqGteRdeYg7ZXfTUDY4bMmEda8OiE0MTGwIMjBi26XT6c3CyFodxJyHNp0wgGT5OnoVArM9qTq6v9YPsCGc/w2f6yV6cYEt4VyWcciAa6H x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: dd6c0080-6dda-4dfd-0306-08d58156d6c6 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(3008032)(2017052603307)(7193020);SRVR:MW2PR2101MB1065; x-ms-traffictypediagnostic: MW2PR2101MB1065: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040501)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93001095)(3231220)(944501244)(52105095)(6055026)(61426038)(61427038)(6041288)(20161123558120)(20161123564045)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:MW2PR2101MB1065;BCL:0;PCL:0;RULEID:;SRVR:MW2PR2101MB1065; x-forefront-prvs: 0600F93FE1 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(346002)(376002)(396003)(39380400002)(39860400002)(189003)(199004)(6506007)(22452003)(54906003)(25786009)(186003)(2950100002)(102836004)(5250100002)(2501003)(110136005)(97736004)(316002)(2900100001)(36756003)(76176011)(6436002)(59450400001)(6486002)(26005)(4326008)(99286004)(68736007)(6512007)(6116002)(10090500001)(106356001)(105586002)(478600001)(66066001)(107886003)(3660700001)(305945005)(86612001)(14454004)(81166006)(7736002)(86362001)(575784001)(1076002)(72206003)(2906002)(10290500003)(8676002)(8936002)(81156014)(3846002)(5660300001)(3280700002)(53936002)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:MW2PR2101MB1065;H:MW2PR2101MB1034.namprd21.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: HIuGRACZoj3FWTF0P5alLD1mO/gkDDBWGISG1J99xKAe07qs2B13t6dfC+ippilGJeJTYRWTzbSf8Vtalb8CBSWUgDMni5STHglDu1DCazCst2kBSjx9SNa/MxkyXCHhKwP2+gLz3VPfQREAYYfAV6r2n0PGunA00kTJHH5x99U= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: dd6c0080-6dda-4dfd-0306-08d58156d6c6 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Mar 2018 22:28:49.1975 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2PR2101MB1065 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/net/vxlan.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index 983e941bdf29..50570d779b01 100644 --- a/drivers/net/vxlan.c +++ b/drivers/net/vxlan.c @@ -2912,6 +2912,11 @@ static int vxlan_dev_configure(struct net *src_net, = struct net_device *dev, return -EINVAL; } =20 + if (lowerdev) { + dev->gso_max_size =3D lowerdev->gso_max_size; + dev->gso_max_segs =3D lowerdev->gso_max_segs; + } + if (conf->mtu) { err =3D __vxlan_change_mtu(dev, lowerdev, dst, conf->mtu, false); if (err) --=20 2.14.1