[PATCH v2 1/2] net: Added mtu parameter to dev_forward_skb calls

2017-05-11 Thread Fredrik Markstrom
and is_skb_forwardable so that the caller can override this packet size limit. Signed-off-by: Fredrik Markstrom --- drivers/net/ipvlan/ipvlan_core.c | 7 --- drivers/net/macvlan.c| 4 ++-- drivers/net/veth.c | 2 +- include/linux/netdevice.h| 10 +- net/bri

[PATCH v2 2/2] veth: Added attribute to set maximum receive size on veth interfaces

2017-05-11 Thread Fredrik Markstrom
possible with (most) hardware ethernet interfaces. Signed-off-by: Fredrik Markstrom --- drivers/net/veth.c| 45 - include/uapi/linux/veth.h | 1 + 2 files changed, 45 insertions(+), 1 deletion(-) diff --git a/drivers/net/veth.c b/drivers/net/veth.c

Support for VETH_MRU in libnl

2017-05-11 Thread Fredrik Markstrom
--- include/linux/if_link.h | 1 + include/netlink-private/types.h | 1 + include/netlink/route/link/veth.h | 4 ++ lib/route/link.c | 4 ++ lib/route/link/veth.c | 141 +- 5 files changed, 118 insertions(+), 33 d

[PATCH v2 0/2] net: Set maximum receive packet size on veth interfaces

2017-05-11 Thread Fredrik Markstrom
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

[PATCH 2/2] veth: Added attribute to set maximum receive size on veth interfaces

2017-05-09 Thread Fredrik Markstrom
possible with (most) hardware ethernet interfaces. Signed-off-by: Fredrik Markstrom --- drivers/net/veth.c| 45 - include/uapi/linux/veth.h | 1 + 2 files changed, 45 insertions(+), 1 deletion(-) diff --git a/drivers/net/veth.c b/drivers/net/veth.c

[PATCH 0/2] net: Set maximum receive packet size on veth interfaces

2017-05-09 Thread Fredrik Markstrom
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

Support for VETH_MRU in libnl

2017-05-09 Thread Fredrik Markstrom
--- include/linux/if_link.h | 1 + include/netlink-private/types.h | 1 + include/netlink/route/link/veth.h | 4 ++ lib/route/link.c | 4 ++ lib/route/link/veth.c | 141 +- 5 files changed, 118 insertions(+), 33 d

[PATCH 1/2] net: Added mtu parameter to dev_forward_skb calls

2017-05-09 Thread Fredrik Markstrom
and is_skb_forwardable so that the caller can override this packet size limit. Signed-off-by: Fredrik Markstrom --- drivers/net/ipvlan/ipvlan_core.c | 7 --- drivers/net/macvlan.c| 4 ++-- drivers/net/veth.c | 2 +- include/linux/netdevice.h| 10 +- net/bri

Re: Inconsistency in packet drop due to MTU (eth vs veth)

2017-02-03 Thread Fredrik Markstrom
/F On Tue, 31 Jan 2017 17:27:09 +0100 Eric Dumazet wrote > On Tue, 2017-01-31 at 14:32 +0100, Fredrik Markstrom wrote: > > On Thu, 19 Jan 2017 19:53:47 +0100 Eric Dumazet > > wrote > > > On Thu, 2017-01-19 at 17:41 +0100,

Re: Inconsistency in packet drop due to MTU (eth vs veth)

2017-01-31 Thread Fredrik Markstrom
On Thu, 19 Jan 2017 19:53:47 +0100 Eric Dumazet wrote > On Thu, 2017-01-19 at 17:41 +0100, Fredrik Markstrom wrote: > > Hello, > > > > I've noticed an inconsistency between how physical ethernet and veth > > handles mtu. > >

Inconsistency in packet drop due to MTU (eth vs veth)

2017-01-19 Thread Fredrik Markstrom
Hello, I've noticed an inconsistency between how physical ethernet and veth handles mtu. If I setup two physical interfaces (directly connected) with different mtu:s, only the size of the outgoing packets are limited by the mtu. But with veth a packet is dropped if the mtu of the receiving int