Searched refs:new_net_conf (Results 1 – 2 of 2) sorted by relevance
2248 …s(struct drbd_connection *connection, struct net_conf *old_net_conf, struct net_conf *new_net_conf) in _check_net_options() argument2254 if (new_net_conf->wire_protocol != old_net_conf->wire_protocol) in _check_net_options()2257 if (new_net_conf->two_primaries != old_net_conf->two_primaries) in _check_net_options()2260 if (strcmp(new_net_conf->integrity_alg, old_net_conf->integrity_alg)) in _check_net_options()2264 if (!new_net_conf->two_primaries && in _check_net_options()2269 if (new_net_conf->two_primaries && in _check_net_options()2270 (new_net_conf->wire_protocol != DRBD_PROT_C)) in _check_net_options()2278 if (new_net_conf->wire_protocol == DRBD_PROT_A && fp == FP_STONITH) in _check_net_options()2281 if (device->state.role == R_PRIMARY && new_net_conf->discard_my_data) in _check_net_options()2285 if (new_net_conf->on_congestion != OC_BLOCK && new_net_conf->wire_protocol != DRBD_PROT_A) in _check_net_options()[all …]
3450 struct net_conf *nc, *old_net_conf, *new_net_conf = NULL; in receive_protocol() local3550 new_net_conf = kmalloc_obj(struct net_conf); in receive_protocol()3551 if (!new_net_conf) in receive_protocol()3557 *new_net_conf = *old_net_conf; in receive_protocol()3559 new_net_conf->wire_protocol = p_proto; in receive_protocol()3560 new_net_conf->after_sb_0p = convert_after_sb(p_after_sb_0p); in receive_protocol()3561 new_net_conf->after_sb_1p = convert_after_sb(p_after_sb_1p); in receive_protocol()3562 new_net_conf->after_sb_2p = convert_after_sb(p_after_sb_2p); in receive_protocol()3563 new_net_conf->two_primaries = p_two_primaries; in receive_protocol()3565 rcu_assign_pointer(connection->net_conf, new_net_conf); in receive_protocol()[all …]