[ovs-dev] [PATCH] dpif-netdev: Update max_mtu correctly.
Ben Pfaff
blp at nicira.com
Fri Apr 26 18:37:45 UTC 2013
What a dumb bug.
Signed-off-by: Ben Pfaff <blp at nicira.com>
---
lib/dpif-netdev.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c
index e4a2f75..6838800 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;
}
--
1.7.2.5
More information about the dev
mailing list