From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=vH6alTiayX1LhY4/NYIkKgGfNtfNSQzjbLtoLm/QWkk=; b=VpnUlRt7OlnBdCphnfPWa6TbOuE5yZjVuHxh+5LyVi2sbITK4brLXan/CT1F9EgxYL r+KKdkKsnhX6bzLg3SG3JwUg6GjlYsetFLPE9Oi7UxGTlEPL3gHaw5krDp7mupJkn2QJ RmSpN1UI5X4zYjn0NwXgyeRdjMy0gak4D79D73wNoqBcH3kYms33OeagOddOBaH+KCLP BmvcFUeHgVrTj/hyb3n4vOZQYEeILYRLZ8SokXRUbfaXt3PEkvNCuKyN7WBhLz3DRfh/ E7KtX4Eo/Dy1A1IBWcg1N0SI4LcSJBhVC1uIowfhf+JGcaZ9eVSn2dBL9Pypl0Ls4rK3 lBnA== From: Fredrik Markstrom Date: Thu, 11 May 2017 15:46:26 +0200 Message-Id: <20170511134629.139528-1-fredrik.markstrom@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Subject: [Bridge] [PATCH v2 0/2] net: Set maximum receive packet size on veth interfaces List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Dumazet Cc: Daniel Borkmann , netdev@vger.kernel.org, bridge@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Alexei Starovoitov , Fredrik Markstrom , "David S. Miller" Currently veth drops all packets larger then the mtu set on the receiving end of the pair. This is inconsistent with most hardware ethernet drivers that happily receives packets up the the ethernet MTU independent of the configured MTU. This patch set adds a new driver attribute to set the maximum size of received packet to make it possible to create configurations similar to those possible with (most) hardware ethernet interfaces. The set consists of two patches. The first one adding a parameter do the dev_forward_skb functions to specify the maximum packet size, the second one implents a new attribute (VETH_MRU) in the veth driver. Fredrik Markstrom (1): veth: Added attribute to set maximum receive size on veth interfaces Fredrik Markström (1): net: Added mtu parameter to dev_forward_skb calls drivers/net/ipvlan/ipvlan_core.c | 7 ++++--- drivers/net/macvlan.c | 4 ++-- drivers/net/veth.c | 45 +++++++++++++++++++++++++++++++++++++++- include/linux/netdevice.h | 10 ++++----- include/uapi/linux/veth.h | 1 + net/bridge/br_forward.c | 4 ++-- net/core/dev.c | 17 +++++++++------ net/core/filter.c | 4 ++-- net/l2tp/l2tp_eth.c | 2 +- 9 files changed, 72 insertions(+), 22 deletions(-) v2 - Updated description and fixed compile error in net/bridge/br_forward.c -- 2.11.0