Received: by 10.223.185.116 with SMTP id b49csp1079947wrg; Sat, 3 Mar 2018 15:00:44 -0800 (PST) X-Google-Smtp-Source: AG47ELscaoCtQ1P8pxugf+j9+qbOJLORXY76r4dSXWjgZ4RVAbSbsJ6z7wqhhRh/td+bu3Bkg+Ie X-Received: by 10.99.67.133 with SMTP id q127mr8399240pga.365.1520118044048; Sat, 03 Mar 2018 15:00:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520118044; cv=none; d=google.com; s=arc-20160816; b=BlSAKjSNX21im5jr/HIYpHRZYL+eQKjr4imdBYNrObGTe3FE79ncHG222iueHgtK7m xaX1bOtccjuPuEAMMytxzFij/vXRnDNG3JMavpJIbXxgdtPwPYgj/aKuAzK/mUJ3zsjJ uDDqY9WU9G1q14dcZWybCD882TwR9SwJiq08FmCU6BsXKuKZsojD1y9ydQv9FIJvbW+8 Rs+3+23BFwezDiPRTye5H2HjVmZSh/KGcsxGtKMIjdzbFcW+qBaS/Bm3oksFiQoeRYhz mlCmWTCjgDLGfrJ5BQbe+Eyebm4+X3zsLGzrFsA2EJ/w6Q0/Cfs2t9HPzZQEOh1z0Brw /7pA== 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=UsidvAcBKvuV0TM2EKrvrUwjCFKHv/NowQfcAM+gnXs=; b=RKXh/DsvN66oSQ8vWu6G6E3xjxL6mhTD7xp27htEeridFODeRc5b/A3DFX+C/i2fbA ycXV8dZJek0/Z/egK4LKbpRQHA4dGrkPNM3EvpJbHk7PPM4JfEdtqmLCX3hNVQgxnq4O RWKLHnVj2pobdz8F5Jj1WEUEnFWRS5UlQpuXKD12ln0oGFrm/LrIquPheP1bTAHN0A0v B4jRcrXeMjgoNXYs0euY0V+oMr0nal0HfS08OEn55ddRz5YJscIZT6jGwXdCE/Dmoaj7 +uiRYKP3qRCwMkSKRcz3o3gLt0ROE+/7ODeF8xiN373oMPNqoW+brR1pY2yW7LZ9EuAQ fGng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=jnnakkWx; 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 e18si7373038pfi.130.2018.03.03.15.00.30; Sat, 03 Mar 2018 15:00:44 -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=jnnakkWx; 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 S964783AbeCCW7S (ORCPT + 99 others); Sat, 3 Mar 2018 17:59:18 -0500 Received: from mail-cys01nam02on0110.outbound.protection.outlook.com ([104.47.37.110]:31968 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933998AbeCCWkx (ORCPT ); Sat, 3 Mar 2018 17:40:53 -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=UsidvAcBKvuV0TM2EKrvrUwjCFKHv/NowQfcAM+gnXs=; b=jnnakkWxDnj25proOj9wBYtMuUv/hVMihWUIwpDTP9Xl0a0wa9WN3eP/PptmLew0065/dVN7jhSfGmHkwmhotm75IYK+g5dDN6SMCTU+OfyP4t6PAtF3F5sCkkM9wIhSTDdfYTDu7vFAZ8KvtLsX2PNlC5pIasc+KKi8cbmbfDk= Received: from MW2PR2101MB1034.namprd21.prod.outlook.com (52.132.149.10) by MWHSPR01MB344.namprd21.prod.outlook.com (10.174.251.167) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.567.3; Sat, 3 Mar 2018 22:40:50 +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:40:50 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: Stephen Hemminger , Stephen Hemminger , "David S . Miller" , Sasha Levin Subject: [PATCH AUTOSEL for 4.4 107/115] veth: set peer GSO values Thread-Topic: [PATCH AUTOSEL for 4.4 107/115] veth: set peer GSO values Thread-Index: AQHTsz9uWqbZcaa+00OdJMvBY2kEUA== Date: Sat, 3 Mar 2018 22:31:53 +0000 Message-ID: <20180303223010.27106-107-alexander.levin@microsoft.com> References: <20180303223010.27106-1-alexander.levin@microsoft.com> In-Reply-To: <20180303223010.27106-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;MWHSPR01MB344;6:XAW9yDRPSL/NbfhsseVaPBw8VfuRk5NaRw/nD9R/FDuf2p22ty/NztfX2MQH9C0pu55+90zP7/iQyhMuX6ku4VggMW4yznnOe/aVRd8C45dH/jonOlz160zfyptwN0qS0gyK7KtX4z2JVpWaAa5ohF2/Dd5weHC9znmRlqr8uxwgK+EEP1L5P8C6j7bYEf/7IJ2trOdwtTaXE6KE5X2ABjcawpvPRio/NJYu4i3973sZN2z1ncNagdEAuYzNqx1J3fsJmfZjZ1/ugTXIYO5LMKBHrUuzPcjBNkgmNLvD3AvOeMz2Ak0kIoKzgcHaNTEJ5uW9l+nnO1sLjGx4OgOe+5uMZULo983+t7fvcl4l+b4AkUkS5cjuoZs+Sy76bVk+;5:SmTL9QiRmPQe2LI/mMl2r14yscvWQ1Y6lvRMnN3yp4TEg7kHz58+EeTZvBmu69aJdAVibQ478Gpxr3A+3t/W+pM2nWHsu7Vy4fwlc+JBDpmVtfKb3ygJzdrdO7efO2tykPibI/kffgDiRrXXiCeJgshwJeQGeiiRD+JSzCbeckw=;24:rC4N8AHD0rQxbgxKvd+dw4ggrwrM6pO5Yx6dd9oT6VawAZI8BPqbu1uuZDR2NpjcseSHTnUNgPC+my64LX819ytA7SoocJT54zZ+QvuLdxw=;7:iYIY5wIc8AfJCG2p4DpftYxYvZkajvsA0gOr7mgcO5ulQMS9ieVSaUeaLAu3n3GcbtPKm3bb59UTkDKx5hOtp4w/AFbgTsxqdqL8WncIttgNuNYK9hoiwyUBlyxCNlkLhL1Hz5crKHvTd4NjALv8eXNtxSDthI+P1Q5QEb/o0VENqR04G56oEA/buB6MnzdpPNdw5hoKl/ShUli5GECMuCPW4iBa1muwSxvL1TrpFJEM5dYxhfp9lLa5bVnPwmFK x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: ed1b50e7-d7b4-4cb8-e98e-08d58157d07b x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(3008032)(2017052603307)(7193020);SRVR:MWHSPR01MB344; x-ms-traffictypediagnostic: MWHSPR01MB344: 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)(3231220)(944501244)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041288)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011);SRVR:MWHSPR01MB344;BCL:0;PCL:0;RULEID:;SRVR:MWHSPR01MB344; x-forefront-prvs: 0600F93FE1 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(396003)(376002)(346002)(39860400002)(366004)(39380400002)(189003)(199004)(8676002)(5660300001)(5250100002)(2501003)(6506007)(7736002)(36756003)(25786009)(3846002)(6116002)(97736004)(305945005)(2900100001)(76176011)(6436002)(10090500001)(26005)(8936002)(186003)(81166006)(102836004)(81156014)(106356001)(86362001)(10290500003)(3660700001)(2906002)(99286004)(14454004)(86612001)(105586002)(478600001)(4326008)(6486002)(53936002)(107886003)(68736007)(316002)(54906003)(110136005)(6512007)(72206003)(3280700002)(22452003)(2950100002)(1076002)(66066001)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:MWHSPR01MB344;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: WC6rCXHgB45ce9dPcjejrHsx0mcjMtmDQB7b2a1nXygotC1QTEVqUzQUvYHKo+SquSDOmA+1ozv7UfqDBSL2S164DL7Iwezrz7WwwTjzZoCxfLh8tzym7dWLpwcQ427V9g6WP+2sngTb7bAbqScmyYw8QxpLGzD6j8vtaC7NHLY= 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: ed1b50e7-d7b4-4cb8-e98e-08d58157d07b X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Mar 2018 22:31:53.4801 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHSPR01MB344 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Stephen Hemminger [ Upstream commit 72d24955b44a4039db54a1c252b5031969eeaac3 ] When new veth is created, and GSO values have been configured on one device, clone those values to the peer. For example: # ip link add dev vm1 gso_max_size 65530 type veth peer name vm2 This should create vm1 <--> vm2 with both having GSO maximum size set to 65530. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/veth.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/veth.c b/drivers/net/veth.c index ba21d072be31..6b4cc1c2e6b4 100644 --- a/drivers/net/veth.c +++ b/drivers/net/veth.c @@ -399,6 +399,9 @@ static int veth_newlink(struct net *src_net, struct net= _device *dev, if (ifmp && (dev->ifindex !=3D 0)) peer->ifindex =3D ifmp->ifi_index; =20 + peer->gso_max_size =3D dev->gso_max_size; + peer->gso_max_segs =3D dev->gso_max_segs; + err =3D register_netdevice(peer); put_net(net); net =3D NULL; --=20 2.14.1