From: Ben Pfaff Date: Fri, 26 Apr 2013 18:35:43 +0000 (-0700) Subject: dpif-netdev: Update max_mtu correctly. X-Git-Tag: sliver-openvswitch-1.10.90-3~17^2~30 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=086041cc8fbbb6e3eb7416fbed78006dd35e75a4;p=sliver-openvswitch.git dpif-netdev: Update max_mtu correctly. What a dumb bug. Signed-off-by: Ben Pfaff --- diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index e4a2f755d..6838800cd 100644 --- a/lib/dpif-netdev.c +++ b/lib/dpif-netdev.c @@ -412,7 +412,7 @@ do_add_port(struct dp_netdev *dp, const char *devname, const char *type, port->type = xstrdup(type); error = netdev_get_mtu(netdev, &mtu); - if (!error) { + if (!error && mtu > max_mtu) { max_mtu = mtu; }