Received: by 10.213.65.68 with SMTP id h4csp37491imn; Mon, 19 Mar 2018 18:45:58 -0700 (PDT) X-Google-Smtp-Source: AG47ELtLBp69skM3xDldxtKyGzoHGi4pvFP/gUFEcvNKOzjU2UjrGfePud+3faKjVpq1li9blA3N X-Received: by 10.99.155.2 with SMTP id r2mr4736257pgd.450.1521510358447; Mon, 19 Mar 2018 18:45:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521510358; cv=none; d=google.com; s=arc-20160816; b=PgJRoPcxXF5JLboS6dOSmEC2Lri9A3QWX1medCQ9NHE0UU/YIgOASRHWPd9whsXxUk qOI8KexaCJtA9mEJywT+vIkAwZ+5tXCzECUXQvz8u7ZnBIj8USG26PYnmYZgVaPCC/v8 mszQ2fi8D92QDqhHT93FZ5cUvF1tJSymt9uFfS7DSR41x1tBntI8Akx2IF6/2TyiXk1t QP95WEnDvYDPU6kAYQSfyqR43XJs7CK7MJSFCh1tzXjE2nASU1CLqR+IDqyX3QTud+hy PDW2qYiukuRIqLvK/JgAe29hZI1JgB1C6QX06DbgZt4EvlbRzl8xyO+lS7S+P53aoVDM gDgg== 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=8oJA1H2ZhgbIL3zYuFeo9INkmFjPQbiUS3UlV5PpHwg=; b=OLv2hTL6q/snR/cuRhcyFTwu1/LEvwC1RVr0OcgOBQDF4dGHtQ4YuVXE4z645XkBA7 /eVkaNB7TqRCB/eucYurbf2jNd/Ooyjq0cM83WUNQpmw0MyPs6ZWTMomCSrcab1TpWod brL34s0MhyQDkCKRb449E3rRjvVSwMt3w2aM5JbRCkMVSuTHgInJFmOdsZaZTkOKx1EH gGOHj18BOFJGoStQRQisrlPFq3qN29NIxc7hFlmkS8SAwdMnrO2KolfOIZkvxSHR2z8Q Tze/VmVztskazuwTYTN+bHzQF4zd3buSB/28XUxCcxTiRAec4eVmPU6XboGt38drK/yO nMnA== 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 n1-v6si528459pld.546.2018.03.19.18.45.45; Mon, 19 Mar 2018 18:45:58 -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 S969977AbeCSTOG (ORCPT + 99 others); Mon, 19 Mar 2018 15:14:06 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:51008 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S969941AbeCSS0x (ORCPT ); Mon, 19 Mar 2018 14:26:53 -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 D01131240; Mon, 19 Mar 2018 18:26:51 +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.9 199/241] veth: set peer GSO values Date: Mon, 19 Mar 2018 19:07:44 +0100 Message-Id: <20180319180759.431582219@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180319180751.172155436@linuxfoundation.org> References: <20180319180751.172155436@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.9-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 @@ -425,6 +425,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;