Searched refs:net_conf (Results 1 - 8 of 8) sorted by relevance

/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/block/drbd/
H A Ddrbd_receiver.c209 if (atomic_read(&mdev->local_cnt) >= mdev->net_conf->unplug_watermark)
264 if (atomic_read(&mdev->pp_in_use) < mdev->net_conf->max_buffers)
272 if (atomic_read(&mdev->pp_in_use) < mdev->net_conf->max_buffers) {
602 err = sock_create_kern(((struct sockaddr *)mdev->net_conf->my_addr)->sa_family,
610 sock->sk->sk_sndtimeo = mdev->net_conf->try_connect_int*HZ;
611 drbd_setbufsize(sock, mdev->net_conf->sndbuf_size,
612 mdev->net_conf->rcvbuf_size);
621 memcpy(&src_in6, mdev->net_conf->my_addr,
622 min_t(int, mdev->net_conf->my_addr_len, sizeof(src_in6)));
623 if (((struct sockaddr *)mdev->net_conf
[all...]
H A Ddrbd_proc.c207 (mdev->net_conf == NULL ? ' ' :
208 (mdev->net_conf->wire_protocol - DRBD_PROT_A+'A')),
H A Ddrbd_nl.c150 switch (((struct sockaddr *)mdev->net_conf->peer_addr)->sa_family) {
154 &((struct sockaddr_in6 *)mdev->net_conf->peer_addr)->sin6_addr);
159 &((struct sockaddr_in *)mdev->net_conf->peer_addr)->sin_addr);
164 &((struct sockaddr_in *)mdev->net_conf->peer_addr)->sin_addr);
331 schedule_timeout((mdev->net_conf->ping_timeo+1)*HZ/10);
362 mdev->net_conf->want_lose = 0;
1184 struct net_conf *new_conf = NULL;
1205 new_conf = kzalloc(sizeof(struct net_conf), GFP_KERNEL);
1254 taken_addr = (struct sockaddr *)&odev->net_conf->my_addr;
1255 if (new_conf->my_addr_len == odev->net_conf
[all...]
H A Ddrbd_main.c660 if (!mdev->net_conf->two_primaries &&
1680 size += strlen(mdev->net_conf->integrity_alg) + 1;
1688 p->protocol = cpu_to_be32(mdev->net_conf->wire_protocol);
1689 p->after_sb_0p = cpu_to_be32(mdev->net_conf->after_sb_0p);
1690 p->after_sb_1p = cpu_to_be32(mdev->net_conf->after_sb_1p);
1691 p->after_sb_2p = cpu_to_be32(mdev->net_conf->after_sb_2p);
1692 p->two_primaries = cpu_to_be32(mdev->net_conf->two_primaries);
1695 if (mdev->net_conf->want_lose)
1697 if (mdev->net_conf->dry_run) {
1709 strcpy(p->integrity_alg, mdev->net_conf
[all...]
H A Ddrbd_req.c304 * grab a reference on the net_conf, and check for the two_primaries flag...
533 if (mdev->newest_tle->n_req >= mdev->net_conf->max_epoch_size)
552 mdev->net_conf->wire_protocol == DRBD_PROT_A) {
H A Ddrbd_int.h923 struct net_conf *net_conf; /* protected by get_net_conf() and put_net_conf() */ member in struct:drbd_conf
960 atomic_t net_cnt; /* Users of net_conf */
2020 * get_net_conf() - Increase ref count on mdev->net_conf; Returns 0 if nothing there
2023 * You have to call put_net_conf() when finished working with mdev->net_conf.
2113 mxb = mdev->net_conf->max_buffers;
H A Ddrbd_worker.c1431 if (mdev->data.socket && !mdev->net_conf->no_cork)
1438 if (mdev->data.socket && !mdev->net_conf->no_cork)
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/include/linux/
H A Ddrbd_nl.h39 NL_PACKET(net_conf, 5,

Completed in 140 milliseconds