[CRIU] [PATCH CRIU 08/14] restore/net/ipv6: net device and def/all configuration
Pavel Emelyanov
xemul at virtuozzo.com
Mon Apr 4 03:16:23 PDT 2016
> @@ -163,9 +163,11 @@ static int net_conf_op(char *tgt, int *conf, int n, int op, char *proto,
> continue;
> }
> /*
> - * If dev conf value is the same as default skip restoring it
> + * If dev conf value is the same as default skip restoring it,
> + * mtu may be changed by disable_ipv6 so we can not skip
> + * it's restore
> */
No, this means that we should restore mtu after disable_ipv6. And we still can check
for it to match default value.
> - if (def_conf && conf[i] == def_conf[i]) {
> + if (def_conf && conf[i] == def_conf[i] && strcmp(devconfs[i], "mtu")) {
> pr_debug("DEBUG Skip %s/%s, val =%d\n", tgt, devconfs[i], conf[i]);
> continue;
> }
More information about the CRIU
mailing list