Received: by 10.213.65.68 with SMTP id h4csp1787616imn; Mon, 19 Mar 2018 13:15:53 -0700 (PDT) X-Google-Smtp-Source: AG47ELu0gKKCW6z/KxXmB4MD+hk/coun9KbwfRbVqGzsoSvKiqO/EkCcgItTuu3FRDU5fYcyl7yN X-Received: by 10.98.218.7 with SMTP id c7mr11222047pfh.162.1521490552991; Mon, 19 Mar 2018 13:15:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521490552; cv=none; d=google.com; s=arc-20160816; b=r8khcZdL235MZgxomUl4TT/SitnxpMguLyAc29FOIPBHyP9JsKOV74dKdJRyYMjEoC qfphyCHF8IQLch17aLQ7ZsLrvjKhv3CngrrYoTZUZiEHZul/sARxikiqbFC7yeIF0sWk EYftYoFncokV1EAYbB6YNhm7xBpaRSi09p06+birwvW6bAvPW6r30eIHN8gGDsDpNt0P scniBL7i3Y0Pw7i7GbxHbNcmUhsLrtVtczmEVeS87enVkLxYu4/xa//e27MR3u8nTswp bS4vqx04OOJr4yU5poPmjCmyXnT8aEQbHgoJi9QP0IondrW1YP+v8aoEvevu1JXEjWF5 toUg== 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=O21O4p3mT3YWmYYagH80rk1Z+pdTLsGGteCPgF9I3F8=; b=VsbTqlnhCIr8zF1+N1fligE9Pi86sDCayDIyUsjYZm0gKzqX7zyEsDi5YMeZiWZuvd fUu0HRv2RBc4O9znCnwMP0ej+Nq57LcskrEBYG9BjeC+VMC58WeO4vrJE/cBj0Iyz3uc tOFph4vxxJliC73/ofeIfMDPf50p1kVwqzDx02rCOvkfQTGhZxqvtYfj0YsjOwiEk7zR 1dGYxiaySmepbZcNa0aQ1/GPAxEzzxx/MKGZihHKrLWNhpCbLQ9BXtf0SZ/ASqOocssQ b1ekG6YRJ5quzdwJfpIXYJpRKkt9pnCOt3iYgU987i8gzI8n7PLfur7AIveRzrCoGTHW lvVQ== 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 u10-v6si4666plu.509.2018.03.19.13.15.38; Mon, 19 Mar 2018 13:15:52 -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 S1030793AbeCSSQ0 (ORCPT + 99 others); Mon, 19 Mar 2018 14:16:26 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:45084 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S969068AbeCSSQU (ORCPT ); Mon, 19 Mar 2018 14:16:20 -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 3CCA3FA8; Mon, 19 Mar 2018 18:16:19 +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.4 101/134] veth: set peer GSO values Date: Mon, 19 Mar 2018 19:06:24 +0100 Message-Id: <20180319171903.826889201@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180319171849.024066323@linuxfoundation.org> References: <20180319171849.024066323@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.4-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 @@ -399,6 +399,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;