Lines Matching defs:new_conf
1184 struct net_conf *new_conf = NULL;
1205 new_conf = kzalloc(sizeof(struct net_conf), GFP_KERNEL);
1206 if (!new_conf) {
1211 new_conf->timeout = DRBD_TIMEOUT_DEF;
1212 new_conf->try_connect_int = DRBD_CONNECT_INT_DEF;
1213 new_conf->ping_int = DRBD_PING_INT_DEF;
1214 new_conf->max_epoch_size = DRBD_MAX_EPOCH_SIZE_DEF;
1215 new_conf->max_buffers = DRBD_MAX_BUFFERS_DEF;
1216 new_conf->unplug_watermark = DRBD_UNPLUG_WATERMARK_DEF;
1217 new_conf->sndbuf_size = DRBD_SNDBUF_SIZE_DEF;
1218 new_conf->rcvbuf_size = DRBD_RCVBUF_SIZE_DEF;
1219 new_conf->ko_count = DRBD_KO_COUNT_DEF;
1220 new_conf->after_sb_0p = DRBD_AFTER_SB_0P_DEF;
1221 new_conf->after_sb_1p = DRBD_AFTER_SB_1P_DEF;
1222 new_conf->after_sb_2p = DRBD_AFTER_SB_2P_DEF;
1223 new_conf->want_lose = 0;
1224 new_conf->two_primaries = 0;
1225 new_conf->wire_protocol = DRBD_PROT_C;
1226 new_conf->ping_timeo = DRBD_PING_TIMEO_DEF;
1227 new_conf->rr_conflict = DRBD_RR_CONFLICT_DEF;
1229 if (!net_conf_from_tags(mdev, nlp->tag_list, new_conf)) {
1234 if (new_conf->two_primaries
1235 && (new_conf->wire_protocol != DRBD_PROT_C)) {
1240 if (mdev->state.role == R_PRIMARY && new_conf->want_lose) {
1247 new_my_addr = (struct sockaddr *)&new_conf->my_addr;
1248 new_peer_addr = (struct sockaddr *)&new_conf->peer_addr;
1255 if (new_conf->my_addr_len == odev->net_conf->my_addr_len &&
1256 !memcmp(new_my_addr, taken_addr, new_conf->my_addr_len))
1260 if (new_conf->peer_addr_len == odev->net_conf->peer_addr_len &&
1261 !memcmp(new_peer_addr, taken_addr, new_conf->peer_addr_len))
1270 if (new_conf->cram_hmac_alg[0] != 0) {
1272 new_conf->cram_hmac_alg);
1286 if (new_conf->integrity_alg[0]) {
1287 integrity_w_tfm = crypto_alloc_hash(new_conf->integrity_alg, 0, CRYPTO_ALG_ASYNC);
1299 integrity_r_tfm = crypto_alloc_hash(new_conf->integrity_alg, 0, CRYPTO_ALG_ASYNC);
1307 ns = new_conf->max_epoch_size/8;
1316 ns = new_conf->max_buffers/8;
1317 if (new_conf->two_primaries && (mdev->ee_hash_s != ns)) {
1325 ((char *)new_conf->shared_secret)[SHARED_SECRET_MAX-1] = 0;
1359 mdev->net_conf = new_conf;
1409 kfree(new_conf);