[PATCH net v3] geneve: Refine MTU limit

2016-02-18 Thread David Wragg
: David Wragg --- drivers/net/geneve.c | 27 ++- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/drivers/net/geneve.c b/drivers/net/geneve.c index 028e387..7097570 100644 --- a/drivers/net/geneve.c +++ b/drivers/net/geneve.c @@ -1039,17 +1039,34 @@ static

Re: [PATCH net v2] geneve: Refine MTU limit

2016-02-18 Thread David Wragg
Wrong comment style, fixed in v3. David

Re: [PATCH net v2 2/3] geneve: Relax MTU constraints

2016-02-18 Thread David Wragg
Tom Herbert writes: > Please implement like in ip_tunnel_change_mtu (or better yet call it), > that is the precedent for tunnels. I've made geneve_change_mtu follow ip_tunnel_change_mtu in v2. If it were to call it instead, are you suggesting just passing in t_hlen? Or restructuring geneve.c to

Re: [PATCH net] geneve: Refine MTU limit

2016-02-18 Thread David Wragg
Jesse Gross writes: > In addition to Tom's comment about taking into account > dev->hard_header_len, can you please not include > GENEVE_MAX_OPTIONS_LEN in the MTU calculation based on the discussion > on the other thread? Otherwise, you are excluding some potentially > valid configurations. Addr

[PATCH net v2] geneve: Refine MTU limit

2016-02-18 Thread David Wragg
Calculate the maximum MTU taking into account the size of headers involved in GENEVE encapsulation, as for other tunnel types. Changes in v2: - Conform more closely to ip_tunnel_change_mtu - Exclude GENEVE options from max MTU calculation Signed-off-by: David Wragg --- drivers/net/geneve.c

[PATCH net] geneve: Refine MTU limit

2016-02-16 Thread David Wragg
While GENEVE allows variable length options, the maximum length of the options is 63 * 4 bytes. So we can reasonably set an MTU limit other than IP_MAX_MTU, as the other tunnel devices do. Signed-off-by: David Wragg --- drivers/net/geneve.c | 11 ++- 1 file changed, 6 insertions(+), 5

Re: [PATCH net v2 2/3] geneve: Relax MTU constraints

2016-02-16 Thread David Wragg
Jesse Gross writes: > On Wed, Feb 10, 2016 at 3:21 PM, Tom Herbert wrote: >> On Wed, Feb 10, 2016 at 12:59 PM, Jesse Gross wrote: >>> On Wed, Feb 10, 2016 at 12:41 PM, David Wragg wrote: >>>> Tom Herbert writes: >>>>> The correct t

Re: [PATCH net v2 2/3] geneve: Relax MTU constraints

2016-02-10 Thread David Wragg
Tom Herbert writes: > The correct thing to do is determine the maximum amount of > encapsulation overhead that can ever be set in a packet and use for > setting the MTU. For instance, when RCO is enable in GUE, the size of > the option is included in tunnel->encap_hlen even though it will not > be

[PATCH net v2 1/3] vxlan: Relax the MTU constraints

2016-02-09 Thread David Wragg
vxlan, and prevented vxlan devices from being able to take advantage of jumbo frames etc. The default MTU remains 1500, for compatibility. Signed-off-by: David Wragg Acked-by: Roopa Prabhu --- drivers/net/vxlan.c | 36 +--- 1 file changed, 25 insertions(+), 11

[PATCH net v3 2/3] geneve: Relax MTU constraints

2016-02-09 Thread David Wragg
IP_MAX_MTU is used instead. Encapsulated packets that are too big for the underlying network will get dropped on the floor. Signed-off-by: David Wragg --- drivers/net/geneve.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/net/geneve.c b/drivers/net/geneve.c

[PATCH net v3 0/3] Set a large MTU on ovs-created tunnel devices

2016-02-09 Thread David Wragg
and geneve as well * Use IP_MAX_MTU Changes in v3: * Fix block comment style David Wragg (3): vxlan: Relax MTU constraints geneve: Relax MTU constraints vxlan, gre, geneve: Set a large MTU on ovs-created tunnel devices drivers/net/geneve.c | 31 +++- drivers

[PATCH net v3 1/3] vxlan: Relax MTU constraints

2016-02-09 Thread David Wragg
vxlan, and prevented vxlan devices from being able to take advantage of jumbo frames etc. The default MTU remains 1500, for compatibility. Signed-off-by: David Wragg Acked-by: Roopa Prabhu --- drivers/net/vxlan.c | 36 +--- 1 file changed, 25 insertions(+), 11

[PATCH net v3 3/3] vxlan, gre, geneve: Set a large MTU on ovs-created tunnel devices

2016-02-09 Thread David Wragg
maximum (i.e. the maximum IP packet size minus any relevant overhead), effectively restoring the behaviour prior to 4.3. Signed-off-by: David Wragg --- drivers/net/geneve.c | 18 ++ drivers/net/vxlan.c | 11 --- include/net/ip_tunnels.h | 1 + net

Re: [PATCH net v2 2/3] geneve: Relax MTU constraints

2016-02-09 Thread David Wragg
Sergei Shtylyov writes: >The networking code formats comments: > > /* Like > * this. > */ Thanks. And I noticed another silly mistake. Will respin. David

[PATCH net v2 1/3] vxlan: Relax the MTU constraints

2016-02-09 Thread David Wragg
vxlan, and prevented vxlan devices from being able to take advantage of jumbo frames etc. The default MTU remains 1500, for compatibility. Signed-off-by: David Wragg Acked-by: Roopa Prabhu --- drivers/net/vxlan.c | 36 +--- 1 file changed, 25 insertions(+), 11

[PATCH net v2 3/3] vxlan, gre, geneve: Set a large MTU on ovs-created tunnel devices

2016-02-09 Thread David Wragg
maximum (i.e. the maximum IP packet size minus any relevant overhead), effectively restoring the behaviour prior to 4.3. Signed-off-by: David Wragg --- drivers/net/geneve.c | 17 + drivers/net/vxlan.c | 11 --- include/net/ip_tunnels.h | 1 + net/ipv4

[PATCH net v2 2/3] geneve: Relax MTU constraints

2016-02-09 Thread David Wragg
IP_MAX_MTU is used instead. Encapsulated packets that are too big for the underlying network will get dropped on the floor. Signed-off-by: David Wragg --- drivers/net/geneve.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/net/geneve.c b/drivers/net/geneve.c

[PATCH net v2 0/3] Set a large MTU on ovs-created tunnel devices

2016-02-09 Thread David Wragg
as well * Use IP_MAX_MTU David Wragg (3): vxlan: Relax the MTU constraints geneve: Relax MTU constraints vxlan, gre, geneve: Set a large MTU on ovs-created tunnel devices drivers/net/geneve.c | 29 +- drivers/net/vxlan.c | 47

Re: [ovs-dev] [PATCH net 0/2] vxlan: Set a large MTU on ovs-created vxlan devices

2016-01-06 Thread David Wragg
Jesse Gross writes: > On Wed, Jan 6, 2016 at 3:25 PM, David Wragg wrote: >> I'm certainly open to suggestions of better ways to solve the problem. > > One option is to simply set the MTU on the device from userspace. If that worked I wouldn't be submitting a patch. The

Re: [PATCH net 0/2] vxlan: Set a large MTU on ovs-created vxlan devices

2016-01-06 Thread David Wragg
David Miller writes: >> Prior to 4.3, openvswitch vxlan vports could transmit vxlan packets of >> any size, constrained only by the ability to transmit the resulting >> UDP packets. 4.3 introduced vxlan netdevs corresponding to vxlan >> vports. These netdevs have an MTU, which limits the size of

[PATCH net 2/2] vxlan: Set a large MTU on ovs-created vxlan devices

2016-01-06 Thread David Wragg
behaviour prior to 4.3. Although the vxlan_config struct already had a mtu field for this, vxlan_dev_configure mostly ignored it; that is also addressed here. Signed-off-by: David Wragg --- drivers/net/vxlan.c | 11 --- net/openvswitch/vport-vxlan.c | 2 ++ 2 files changed, 10

[PATCH net 1/2] vxlan: Relax the MTU constraint on vxlan devices

2016-01-06 Thread David Wragg
vxlan, and prevented such vxlan devices from being able to take advantage of jumbo frames etc. The default MTU remains 1500, for compatibility. Signed-off-by: David Wragg --- drivers/net/vxlan.c | 27 +-- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a

[PATCH net 0/2] vxlan: Set a large MTU on ovs-created vxlan devices

2016-01-06 Thread David Wragg
), effectively restoring the behaviour prior to 4.3. In order to accomplish this, the first patch removes the MTU constraint of 1500 for vxlan netdevs without an underlying device. David Wragg (2): vxlan: Relax the MTU constraint on vxlan devices vxlan: Set a large MTU on ovs-created vxlan devices