Home
last modified time | relevance | path

Searched refs:new_net_conf (Results 1 – 2 of 2) sorted by relevance

/linux-4.1.27/drivers/block/drbd/
Ddrbd_nl.c2001 …s(struct drbd_connection *connection, struct net_conf *old_net_conf, struct net_conf *new_net_conf) in _check_net_options() argument
2007 if (new_net_conf->wire_protocol != old_net_conf->wire_protocol) in _check_net_options()
2010 if (new_net_conf->two_primaries != old_net_conf->two_primaries) in _check_net_options()
2013 if (strcmp(new_net_conf->integrity_alg, old_net_conf->integrity_alg)) in _check_net_options()
2017 if (!new_net_conf->two_primaries && in _check_net_options()
2022 if (new_net_conf->two_primaries && in _check_net_options()
2023 (new_net_conf->wire_protocol != DRBD_PROT_C)) in _check_net_options()
2031 if (new_net_conf->wire_protocol == DRBD_PROT_A && fp == FP_STONITH) in _check_net_options()
2034 if (device->state.role == R_PRIMARY && new_net_conf->discard_my_data) in _check_net_options()
2038 if (new_net_conf->on_congestion != OC_BLOCK && new_net_conf->wire_protocol != DRBD_PROT_A) in _check_net_options()
[all …]
Ddrbd_receiver.c3295 struct net_conf *nc, *old_net_conf, *new_net_conf = NULL; in receive_protocol() local
3394 new_net_conf = kmalloc(sizeof(struct net_conf), GFP_KERNEL); in receive_protocol()
3395 if (!new_net_conf) { in receive_protocol()
3403 *new_net_conf = *old_net_conf; in receive_protocol()
3405 new_net_conf->wire_protocol = p_proto; in receive_protocol()
3406 new_net_conf->after_sb_0p = convert_after_sb(p_after_sb_0p); in receive_protocol()
3407 new_net_conf->after_sb_1p = convert_after_sb(p_after_sb_1p); in receive_protocol()
3408 new_net_conf->after_sb_2p = convert_after_sb(p_after_sb_2p); in receive_protocol()
3409 new_net_conf->two_primaries = p_two_primaries; in receive_protocol()
3411 rcu_assign_pointer(connection->net_conf, new_net_conf); in receive_protocol()
[all …]