All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Do not assume mtu the mtu of xnb and mtu interfaces on FreeBSD.
@ 2015-04-20  7:12 Gustau Perez
  2015-04-20  9:25 ` Roger Pau Monné
  0 siblings, 1 reply; 5+ messages in thread
From: Gustau Perez @ 2015-04-20  7:12 UTC (permalink / raw)
  To: xen-devel; +Cc: Gustau Perez, roger.pau

On creation time, tap and xnb interfaces are created with an mtu of
1500 bytes, assuming the bridge will have the same value.
Instead, check the bridge mtu and configure the new xnb or
tap interface with the same value.

The tools used are sed and ifconfig, both included on base. No need
to install additional ports (no new dependences).

Signed-off-by: Gustau Perez <gustau.perez@gmail.com>
---
 tools/hotplug/FreeBSD/vif-bridge | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/hotplug/FreeBSD/vif-bridge b/tools/hotplug/FreeBSD/vif-bridge
index d350df4..062b20a 100644
--- a/tools/hotplug/FreeBSD/vif-bridge
+++ b/tools/hotplug/FreeBSD/vif-bridge
@@ -22,6 +22,8 @@ action=$2
 case $action in
 add)
 	bridge=$(xenstore-read "$path/bridge")
+	mtu=$(ifconfig $bridge | sed -n 's/.*mtu \([0-9]*\)$/\1/p')
+	ifconfig $iface_dev mtu $mtu
 	ifconfig $bridge addm $iface_dev
 	ifconfig $iface_dev up
 	exit 0
-- 
2.3.5

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] Do not assume mtu the mtu of xnb and mtu interfaces on FreeBSD.
  2015-04-20  7:12 [PATCH] Do not assume mtu the mtu of xnb and mtu interfaces on FreeBSD Gustau Perez
@ 2015-04-20  9:25 ` Roger Pau Monné
  2015-04-20 10:01   ` Wei Liu
  0 siblings, 1 reply; 5+ messages in thread
From: Roger Pau Monné @ 2015-04-20  9:25 UTC (permalink / raw)
  To: Gustau Perez, xen-devel; +Cc: Wei Liu, Ian Jackson, Ian Campbell

El 20/04/15 a les 9.12, Gustau Perez ha escrit:
> On creation time, tap and xnb interfaces are created with an mtu of
> 1500 bytes, assuming the bridge will have the same value.
> Instead, check the bridge mtu and configure the new xnb or
> tap interface with the same value.
> 
> The tools used are sed and ifconfig, both included on base. No need
> to install additional ports (no new dependences).
> 
> Signed-off-by: Gustau Perez <gustau.perez@gmail.com>

Acked-by: Roger Pau Monné <roger.pau@citrix.com>

+CCing the tools maintainers.

Roger.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] Do not assume mtu the mtu of xnb and mtu interfaces on FreeBSD.
  2015-04-20  9:25 ` Roger Pau Monné
@ 2015-04-20 10:01   ` Wei Liu
  2015-04-20 10:21     ` Gustau Pérez
  0 siblings, 1 reply; 5+ messages in thread
From: Wei Liu @ 2015-04-20 10:01 UTC (permalink / raw)
  To: Roger Pau Monné
  Cc: Gustau Perez, xen-devel, Ian Jackson, Ian Campbell, Wei Liu

On Mon, Apr 20, 2015 at 11:25:36AM +0200, Roger Pau Monné wrote:
> El 20/04/15 a les 9.12, Gustau Perez ha escrit:
> > On creation time, tap and xnb interfaces are created with an mtu of
> > 1500 bytes, assuming the bridge will have the same value.
> > Instead, check the bridge mtu and configure the new xnb or
> > tap interface with the same value.
> > 
> > The tools used are sed and ifconfig, both included on base. No need
> > to install additional ports (no new dependences).
> > 
> > Signed-off-by: Gustau Perez <gustau.perez@gmail.com>
> 
> Acked-by: Roger Pau Monné <roger.pau@citrix.com>
> 
> +CCing the tools maintainers.
> 

The patch title is a bit cryptic. Maybe change it to:

  hotplug: set network interface MTU to bridge MTU on FreeBSD

?

In any case

Acked-by: Wei Liu <wei.liu2@citrix.com>

Wei.

> Roger.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] Do not assume mtu the mtu of xnb and mtu interfaces on FreeBSD.
  2015-04-20 10:01   ` Wei Liu
@ 2015-04-20 10:21     ` Gustau Pérez
  2015-04-22 14:21       ` Ian Campbell
  0 siblings, 1 reply; 5+ messages in thread
From: Gustau Pérez @ 2015-04-20 10:21 UTC (permalink / raw)
  To: Wei Liu, Roger Pau Monné; +Cc: xen-devel, Ian Jackson, Ian Campbell



On 20/04/2015 12:01, Wei Liu wrote:
> On Mon, Apr 20, 2015 at 11:25:36AM +0200, Roger Pau Monné wrote:
>> El 20/04/15 a les 9.12, Gustau Perez ha escrit:
>>> On creation time, tap and xnb interfaces are created with an mtu of
>>> 1500 bytes, assuming the bridge will have the same value.
>>> Instead, check the bridge mtu and configure the new xnb or
>>> tap interface with the same value.
>>>
>>> The tools used are sed and ifconfig, both included on base. No need
>>> to install additional ports (no new dependences).
>>>
>>> Signed-off-by: Gustau Perez <gustau.perez@gmail.com>
>> Acked-by: Roger Pau Monné <roger.pau@citrix.com>
>>
>> +CCing the tools maintainers.
>>
> The patch title is a bit cryptic. Maybe change it to:
>
>   hotplug: set network interface MTU to bridge MTU on FreeBSD
>
> ?
>
> In any case
>
> Acked-by: Wei Liu <wei.liu2@citrix.com>
>
> Wei.

   Seems fine to me.

   Best,

   G.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] Do not assume mtu the mtu of xnb and mtu interfaces on FreeBSD.
  2015-04-20 10:21     ` Gustau Pérez
@ 2015-04-22 14:21       ` Ian Campbell
  0 siblings, 0 replies; 5+ messages in thread
From: Ian Campbell @ 2015-04-22 14:21 UTC (permalink / raw)
  To: Gustau Pérez; +Cc: xen-devel, Wei Liu, Ian Jackson, Roger Pau Monné

On Mon, 2015-04-20 at 12:21 +0200, Gustau Pérez wrote:
> 
> On 20/04/2015 12:01, Wei Liu wrote:
> > On Mon, Apr 20, 2015 at 11:25:36AM +0200, Roger Pau Monné wrote:
> >> El 20/04/15 a les 9.12, Gustau Perez ha escrit:
> >>> On creation time, tap and xnb interfaces are created with an mtu of
> >>> 1500 bytes, assuming the bridge will have the same value.
> >>> Instead, check the bridge mtu and configure the new xnb or
> >>> tap interface with the same value.
> >>>
> >>> The tools used are sed and ifconfig, both included on base. No need
> >>> to install additional ports (no new dependences).
> >>>
> >>> Signed-off-by: Gustau Perez <gustau.perez@gmail.com>
> >> Acked-by: Roger Pau Monné <roger.pau@citrix.com>
> >>
> >> +CCing the tools maintainers.
> >>
> > The patch title is a bit cryptic. Maybe change it to:
> >
> >   hotplug: set network interface MTU to bridge MTU on FreeBSD
> >
> > ?
> >
> > In any case
> >
> > Acked-by: Wei Liu <wei.liu2@citrix.com>
> >
> > Wei.
> 
>    Seems fine to me.

I went with "hotplug/FreeBSD: set network interface MTU to bridge MTU".
Acked + applied, thanks.

> 
>    Best,
> 
>    G.



_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-04-22 14:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-20  7:12 [PATCH] Do not assume mtu the mtu of xnb and mtu interfaces on FreeBSD Gustau Perez
2015-04-20  9:25 ` Roger Pau Monné
2015-04-20 10:01   ` Wei Liu
2015-04-20 10:21     ` Gustau Pérez
2015-04-22 14:21       ` Ian Campbell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.