Skip to contentSkip to conversation

Do not assume mtu the mtu of xnb and mtu interfaces on FreeBSD.

PATCH In review Gustau Perez 4 participants 5 messages Apr 20, 2015 – Apr 22, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Do not assume mtu the mtu of xnb and mtu interfaces on FreeBSD.

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).

---
 tools/hotplug/FreeBSD/vif-bridge | 2 ++
 1 file changed, 2 insertions(+)
tools/hotplug/FreeBSD/vif-bridge +2 -0
index d350df4..062b20a 100644
@@ -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
Signature · 1 line
2.3.5
Acked-by on v1 1/1
#1 lore raw

El 20/04/15 a les 9.12, Gustau Perez ha escrit:

Quoted 9 lines

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).

+CCing the tools maintainers.

Roger.

Acked-by
#2 lore raw
Quoted 6 lines · Roger Pau Monné

El 20/04/15 a les 9.12, Gustau Perez ha escrit:

Quoted 5 lines

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.

Quoted 9 lines
Quoted 4 lines

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

+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

Wei.

Quoted 1 line

Roger.

#3 lore raw
Quoted 19 lines · Wei Liu
Quoted 6 lines · Roger Pau Monné

El 20/04/15 a les 9.12, Gustau Perez ha escrit:

Quoted 5 lines

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.

Quoted 8 lines
Quoted 4 lines

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

+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

Quoted 7 lines

?

In any case

Wei.

Seems fine to me.

Best,

G.

#4 lore raw
Quoted 23 lines · Gustau Pérez
Quoted 21 lines · Wei Liu
Quoted 6 lines · Roger Pau Monné

El 20/04/15 a les 9.12, Gustau Perez ha escrit:

Quoted 5 lines

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.

Quoted 8 lines
Quoted 4 lines

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

+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

?

Quoted 7 lines
Quoted 5 lines

In any case

Wei.

Seems fine to me.

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

Quoted 4 lines
   Best,

   G.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel