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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user