Received: by 10.213.65.68 with SMTP id h4csp475521imn; Fri, 16 Mar 2018 08:54:23 -0700 (PDT) X-Google-Smtp-Source: AG47ELs9wZZ9rQQFdI77cmffANx5N40k4TOWlxf3SGPuzLKiX9eNJxfZVq3qUDuly+C+ODfab27M X-Received: by 10.101.78.133 with SMTP id b5mr1842846pgs.229.1521215663821; Fri, 16 Mar 2018 08:54:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521215663; cv=none; d=google.com; s=arc-20160816; b=rXU1fLWffeQlFmxtDC5yHXjidwOR80gGJUIJ/+DNHJuW6NUZy7/qqt/YQIVmpqd15e 1it3kRY7leoDpusmKJcrk0OBR9PcS5Jkpjt3zsIChk3KQuyDe/PBwWUOLjema43QR374 mraU7uUUtGDTk3kSeFnDbWu39NBmsLG7NvwaMuBigTFnM81/io/ekrNAkS4AG1LG4zDG mQOm/EmLTg+gSN3Q+jIZyY6LCd/MhQv0f/DFX9vGZ293Rm0YioMU04RY970tOR/RZSII 0HNPDiXG8dSHJdxlRoDDKd0YqsvykgwsH/UV0hOy3zdX7BLPDbhMz/L3JAdWZtpvDxmI 2i6Q== 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=O6Wo2NU247yJ1CqGthgSbZ9ZjBejlOIDMz3qkOJ2QPM=; b=0D57Ut7Nuk2mHw19HrSKcV8HyiS3DyarRh7PT4k6ZjNsYCJGOmAT7eGy+OW5QS/Fjr 1hzG9g1p8av2RstepdnykJtFmJwAqJuULQNq11qAFOnRdi0rD75teFElHzsgzcGo5Oha xqzBt69i99TzyXGt6xVIMcJ5ONoH0Gulp1xFF9qiN9xIJTwRcPcQLhi6aBI2agFdZB1o U2XhCZHTzlvu2TNASQ/9CfvXlYYhROSnxMP2oV2+6ssmOpdbTTAbjX1guoSeEQUY88bT QPXZW/OKxLlGH7hxQrSB5LcPJ7+9RwMY6bu1O4DPK/iN4ZRwzIuL4KUa8PjEeyHJoX9U QFiw== 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 h11si5102572pgq.28.2018.03.16.08.54.09; Fri, 16 Mar 2018 08:54:23 -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 S965394AbeCPPoS (ORCPT + 99 others); Fri, 16 Mar 2018 11:44:18 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:45870 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965364AbeCPPoO (ORCPT ); Fri, 16 Mar 2018 11:44:14 -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 D9277DD9; Fri, 16 Mar 2018 15:44:13 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Stephen Hemminger , "David S. Miller" , Sasha Levin Subject: [PATCH 4.15 110/128] veth: set peer GSO values Date: Fri, 16 Mar 2018 16:24:11 +0100 Message-Id: <20180316152342.021185245@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180316152336.199007505@linuxfoundation.org> References: <20180316152336.199007505@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.15-stable review patch. If anyone has any objections, please let me know. ------------------ 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 Signed-off-by: Greg Kroah-Hartman --- drivers/net/veth.c | 3 +++ 1 file changed, 3 insertions(+) --- a/drivers/net/veth.c +++ b/drivers/net/veth.c @@ -410,6 +410,9 @@ static int veth_newlink(struct net *src_ if (ifmp && (dev->ifindex != 0)) peer->ifindex = ifmp->ifi_index; + peer->gso_max_size = dev->gso_max_size; + peer->gso_max_segs = dev->gso_max_segs; + err = register_netdevice(peer); put_net(net); net = NULL;