Home
last modified time | relevance | path

Searched refs:net_random (Results 1 – 25 of 27) sorted by relevance

12

/linux-3.4.99/net/sched/
Dsch_netem.c143 state->last = net_random(); in init_crandom()
156 return net_random(); in get_crandom()
158 value = net_random(); in get_crandom()
172 u32 rnd = net_random(); in loss_4state()
239 if (net_random() < clg->a1) in loss_gilb_ell()
241 if (net_random() < clg->a4) in loss_gilb_ell()
244 if (net_random() < clg->a2) in loss_gilb_ell()
246 if (clg->a3 > net_random()) in loss_gilb_ell()
406 skb->data[net_random() % skb_headlen(skb)] ^= 1<<(net_random() % 8); in netem_enqueue()
Dact_gact.c40 if (!gact->tcfg_pval || net_random() % gact->tcfg_pval) in gact_net_rand()
Dsch_sfq.c630 q->perturbation = net_random(); in sfq_perturbation()
699 q->perturbation = net_random(); in sfq_change()
760 q->perturbation = net_random(); in sfq_init()
Dsch_sfb.c223 q->bins[slot].perturbation = net_random(); in sfb_init_perturbation()
384 r = net_random() & SFB_MAX_PROB; in sfb_enqueue()
/linux-3.4.99/net/netfilter/
Dxt_statistic.c40 if ((net_random() & 0x7FFFFFFF) < info->u.random.probability) in statistic_mt()
/linux-3.4.99/net/rds/
Dbind.c121 rover = max_t(u16, net_random(), 2); in rds_add_bound()
/linux-3.4.99/net/core/
Dstream.c125 current_timeo = vm_wait = (net_random() % (HZ / 5)) + 2; in sk_stream_wait_memory()
Dneighbour.c124 return base ? (net_random() % base) + (base >> 1) : 0; in neigh_rand_reach_time()
1391 unsigned long sched_next = now + (net_random() % p->proxy_delay); in pneigh_enqueue()
/linux-3.4.99/include/net/
Dred.h306 return reciprocal_divide(net_random(), p->max_P_reciprocal); in red_random()
/linux-3.4.99/include/linux/
Dnet.h308 #define net_random() random32() macro
/linux-3.4.99/net/openvswitch/
Dactions.c318 if (net_random() >= nla_get_u32(a)) in sample()
/linux-3.4.99/net/ipv6/
Dmcast.c1003 int tv = net_random() % idev->mc_maxdelay; in mld_gq_start_timer()
1012 int tv = net_random() % delay; in mld_ifc_start_timer()
1038 delay = net_random() % resptime; in igmp6_group_queried()
2102 delay = net_random() % IGMP6_UNSOLICITED_IVAL; in igmp6_join_group()
Dip6_flowlabel.c191 fl->label = htonl(net_random())&IPV6_FLOWLABEL_MASK; in fl_intern()
/linux-3.4.99/net/802/
Dgarp.c400 delay = (u64)msecs_to_jiffies(garp_join_time) * net_random() >> 32; in garp_join_timer_arm()
/linux-3.4.99/net/ipv4/
Digmp.c189 int tv = net_random() % max_delay; in igmp_start_timer()
198 int tv = net_random() % in_dev->mr_maxdelay; in igmp_gq_start_timer()
207 int tv = net_random() % delay; in igmp_ifc_start_timer()
Dinet_connection_sock.c108 smallest_rover = rover = net_random() % remaining + low; in inet_csk_get_port()
Dudp.c216 rand = net_random(); in udp_lib_get_port()
Droute.c3484 net_random() % ip_rt_gc_interval + ip_rt_gc_interval); in ip_rt_init()
/linux-3.4.99/net/sunrpc/
Dxprt.c1119 xprt->xid = net_random(); in xprt_init_xid()
Dcache.c632 if (net_random() & 1) in cache_limit_defers()
Dxprtsock.c1687 unsigned short rand = (unsigned short) net_random() % range; in xs_get_random_port()
/linux-3.4.99/net/netfilter/ipvs/
Dip_vs_conn.c1172 unsigned hash = net_random() & ip_vs_conn_tab_mask; in ip_vs_random_dropentry()
/linux-3.4.99/net/xfrm/
Dxfrm_state.c1536 spi = low + net_random()%(high-low+1); in xfrm_alloc_spi()
/linux-3.4.99/drivers/infiniband/core/
Dcma.c2147 rover = net_random() % remaining + low; in cma_alloc_any_port()
/linux-3.4.99/drivers/block/drbd/
Ddrbd_main.c402 b->br_number = net_random(); in _tl_restart()

12