2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

dpif-netdev: Update max_mtu correctly.

What a dumb bug.

Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
Ben Pfaff
2013-04-26 11:35:43 -07:00
parent b13b6d4786
commit 086041cc8f

View File

@@ -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;
}