aboutsummaryrefslogtreecommitdiff
path: root/lib/dpif-netdev.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2013-04-26 11:35:43 -0700
committerBen Pfaff <blp@nicira.com>2013-04-29 13:54:57 -0700
commit086041cc8fbbb6e3eb7416fbed78006dd35e75a4 (patch)
treecbc023107ec927c37fb7b7a829ba61fb2af56e9e /lib/dpif-netdev.c
parentb13b6d478648249589d87ff55f49213ab3ec533c (diff)
dpif-netdev: Update max_mtu correctly.
What a dumb bug. Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/dpif-netdev.c')
-rw-r--r--lib/dpif-netdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c
index e4a2f755..6838800c 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;
}