Received: by 10.213.65.68 with SMTP id h4csp499091imn; Fri, 16 Mar 2018 09:35:35 -0700 (PDT) X-Google-Smtp-Source: AG47ELtKCrsu8xtCiaznGcxp691akD03x2IZ9ek53UV3HvspvDrjmh4+WhRA7u6QMwxpuIQTAs1k X-Received: by 2002:a17:902:341:: with SMTP id 59-v6mr2715624pld.407.1521218135367; Fri, 16 Mar 2018 09:35:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521218135; cv=none; d=google.com; s=arc-20160816; b=QyuNcfQMXtANYkAr1zB6F4jqJimmuePvg93W8Cs54+3sy7tiuGko53d70k3yyd7xEX 0MZaeRmfG1JPQGMIFN1hgzJaMFTSI+dSd/tlrfvNvZbkszeko+RHje1ICVh2BIc8VliQ TFZZRwXEq8bw4c4foyWhBl1b8cDJzhIjt6bp5yGRQtWk1WRseYzdNomWotRsMRR8QbaI PlnxBCfbrJrjPAmfaqGZMUj4BIOg1PJYhseSChsLoPSQkOeMa95RFiZM/SQOUYir+moA veGZv+ddhr6+FRWzRsr+UfSEJviYVPCNADBItAYcDADsi4dbr+07fX69M3S1qUHO5TxO I8Bw== 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=6zD5hMPmcWDWTKV7ke9bMDqQocD6T3tyc12pUFQw4GM=; b=PywCRaHazQcwTU0XppfibqKuDvcKbrT7z2AKAtGWS4l8/AMqeY/RN1/CXMux74dkXa svL+jo/5/uDqI3o1vXQkDG8z8M8BY5oaBIlSRTKaitUMFPAYJbTUDaE070rJ46OCCkOF 4nF+Wc1CusyeMPZ3iDvpjofoFRqdBY4+RMKwh0jjRkkKZmaND9sdR2CdBQ67a+blWxDV WkyBZfSt9qFr8U5kmFu79LwvQj6tKbBiOXlS7GOlYCjj+m4MfitPP4V01opGgE5+r0If YvgDFQ/yx+7sf181KmHonGchiAb/ARL2NLZd054Jg6ztGCOYU9h2GmJtB2ZbjCJ0Lhf6 U16Q== 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 62si5764248pfh.153.2018.03.16.09.35.20; Fri, 16 Mar 2018 09:35:35 -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 S1752841AbeCPQd3 (ORCPT + 99 others); Fri, 16 Mar 2018 12:33:29 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:42062 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934479AbeCPPiD (ORCPT ); Fri, 16 Mar 2018 11:38:03 -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 4A73B1225; Fri, 16 Mar 2018 15:38:00 +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.14 091/109] veth: set peer GSO values Date: Fri, 16 Mar 2018 16:24:00 +0100 Message-Id: <20180316152334.862430052@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180316152329.844663293@linuxfoundation.org> References: <20180316152329.844663293@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.14-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;