• Home
  • Raw
  • Download

Lines Matching refs:new_net_conf

2301 …s(struct drbd_connection *connection, struct net_conf *old_net_conf, struct net_conf *new_net_conf)  in _check_net_options()  argument
2307 if (new_net_conf->wire_protocol != old_net_conf->wire_protocol) in _check_net_options()
2310 if (new_net_conf->two_primaries != old_net_conf->two_primaries) in _check_net_options()
2313 if (strcmp(new_net_conf->integrity_alg, old_net_conf->integrity_alg)) in _check_net_options()
2317 if (!new_net_conf->two_primaries && in _check_net_options()
2322 if (new_net_conf->two_primaries && in _check_net_options()
2323 (new_net_conf->wire_protocol != DRBD_PROT_C)) in _check_net_options()
2331 if (new_net_conf->wire_protocol == DRBD_PROT_A && fp == FP_STONITH) in _check_net_options()
2334 if (device->state.role == R_PRIMARY && new_net_conf->discard_my_data) in _check_net_options()
2338 if (new_net_conf->on_congestion != OC_BLOCK && new_net_conf->wire_protocol != DRBD_PROT_A) in _check_net_options()
2345 check_net_options(struct drbd_connection *connection, struct net_conf *new_net_conf) in check_net_options() argument
2352 rv = _check_net_options(connection, rcu_dereference(connection->net_conf), new_net_conf); in check_net_options()
2390 alloc_crypto(struct crypto *crypto, struct net_conf *new_net_conf) in alloc_crypto() argument
2395 rv = alloc_shash(&crypto->csums_tfm, new_net_conf->csums_alg, in alloc_crypto()
2399 rv = alloc_shash(&crypto->verify_tfm, new_net_conf->verify_alg, in alloc_crypto()
2403 rv = alloc_shash(&crypto->integrity_tfm, new_net_conf->integrity_alg, in alloc_crypto()
2407 if (new_net_conf->cram_hmac_alg[0] != 0) { in alloc_crypto()
2409 new_net_conf->cram_hmac_alg); in alloc_crypto()
2431 struct net_conf *old_net_conf, *new_net_conf = NULL; in drbd_adm_net_opts() local
2446 new_net_conf = kzalloc(sizeof(struct net_conf), GFP_KERNEL); in drbd_adm_net_opts()
2447 if (!new_net_conf) { in drbd_adm_net_opts()
2464 *new_net_conf = *old_net_conf; in drbd_adm_net_opts()
2466 set_net_conf_defaults(new_net_conf); in drbd_adm_net_opts()
2468 err = net_conf_from_attrs_for_change(new_net_conf, info); in drbd_adm_net_opts()
2475 retcode = check_net_options(connection, new_net_conf); in drbd_adm_net_opts()
2481 if (rsr && strcmp(new_net_conf->csums_alg, old_net_conf->csums_alg)) { in drbd_adm_net_opts()
2488 if (ovr && strcmp(new_net_conf->verify_alg, old_net_conf->verify_alg)) { in drbd_adm_net_opts()
2493 retcode = alloc_crypto(&crypto, new_net_conf); in drbd_adm_net_opts()
2497 rcu_assign_pointer(connection->net_conf, new_net_conf); in drbd_adm_net_opts()
2538 kfree(new_net_conf); in drbd_adm_net_opts()
2575 struct net_conf *old_net_conf, *new_net_conf = NULL; in drbd_adm_connect() local
2626 new_net_conf = kzalloc(sizeof(*new_net_conf), GFP_KERNEL); in drbd_adm_connect()
2627 if (!new_net_conf) { in drbd_adm_connect()
2632 set_net_conf_defaults(new_net_conf); in drbd_adm_connect()
2634 err = net_conf_from_attrs(new_net_conf, info); in drbd_adm_connect()
2641 retcode = check_net_options(connection, new_net_conf); in drbd_adm_connect()
2645 retcode = alloc_crypto(&crypto, new_net_conf); in drbd_adm_connect()
2649 ((char *)new_net_conf->shared_secret)[SHARED_SECRET_MAX-1] = 0; in drbd_adm_connect()
2660 rcu_assign_pointer(connection->net_conf, new_net_conf); in drbd_adm_connect()
2708 kfree(new_net_conf); in drbd_adm_connect()