Home
last modified time | relevance | path

Searched refs:rover (Results 1 – 5 of 5) sorted by relevance

/net/rds/
Dbind.c98 u16 rover, last; in rds_add_bound() local
102 rover = be16_to_cpu(*port); in rds_add_bound()
103 if (rover == RDS_FLAG_PROBE_PORT) in rds_add_bound()
105 last = rover; in rds_add_bound()
107 rover = max_t(u16, get_random_u16(), 2); in rds_add_bound()
108 last = rover - 1; in rds_add_bound()
112 if (rover == 0) in rds_add_bound()
113 rover++; in rds_add_bound()
115 if (rover == RDS_FLAG_PROBE_PORT) in rds_add_bound()
117 __rds_create_bind_key(key, addr, cpu_to_be16(rover), in rds_add_bound()
[all …]
/net/netfilter/ipvs/
Dip_vs_lblc.c108 int rover; /* rover for expire check */ member
264 for (i = 0, j = tbl->rover; i < IP_VS_LBLC_TAB_SIZE; i++) { in ip_vs_lblc_full_check()
279 tbl->rover = j; in ip_vs_lblc_full_check()
320 for (i = 0, j = tbl->rover; i < IP_VS_LBLC_TAB_SIZE; i++) { in ip_vs_lblc_check_expire()
336 tbl->rover = j; in ip_vs_lblc_check_expire()
366 tbl->rover = 0; in ip_vs_lblc_init_svc()
Dip_vs_lblcr.c278 int rover; /* rover for expire check */ member
429 for (i = 0, j = tbl->rover; i < IP_VS_LBLCR_TAB_SIZE; i++) { in ip_vs_lblcr_full_check()
443 tbl->rover = j; in ip_vs_lblcr_full_check()
484 for (i = 0, j = tbl->rover; i < IP_VS_LBLCR_TAB_SIZE; i++) { in ip_vs_lblcr_check_expire()
500 tbl->rover = j; in ip_vs_lblcr_check_expire()
529 tbl->rover = 0; in ip_vs_lblcr_init_svc()
/net/netlink/
Daf_netlink.c842 s32 rover = -4096; in netlink_autobind() local
852 if (rover == -4096) in netlink_autobind()
854 rover = S32_MIN + get_random_u32_below(-4096 - S32_MIN); in netlink_autobind()
855 else if (rover >= -4096) in netlink_autobind()
856 rover = -4097; in netlink_autobind()
857 portid = rover--; in netlink_autobind()
/net/sctp/
Dsocket.c8353 unsigned int rover; in sctp_get_port_local() local
8357 rover = get_random_u32_below(remaining) + low; in sctp_get_port_local()
8360 rover++; in sctp_get_port_local()
8361 if ((rover < low) || (rover > high)) in sctp_get_port_local()
8362 rover = low; in sctp_get_port_local()
8363 if (inet_is_local_reserved_port(net, rover)) in sctp_get_port_local()
8365 index = sctp_phashfn(net, rover); in sctp_get_port_local()
8369 if ((pp->port == rover) && in sctp_get_port_local()
8387 snum = rover; in sctp_get_port_local()