Lines Matching refs:parms
445 n->parms = neigh_parms_clone(&tbl->parms); in neigh_alloc()
644 if (n->parms->neigh_setup && in ___neigh_create()
645 (error = n->parms->neigh_setup(n)) < 0) { in ___neigh_create()
650 n->confirmed = jiffies - (NEIGH_VAR(n->parms, BASE_REACHABLE_TIME) << 1); in ___neigh_create()
661 if (n->parms->dead) { in ___neigh_create()
847 static void neigh_parms_destroy(struct neigh_parms *parms);
849 static inline void neigh_parms_put(struct neigh_parms *parms) in neigh_parms_put() argument
851 if (refcount_dec_and_test(&parms->refcnt)) in neigh_parms_put()
852 neigh_parms_destroy(parms); in neigh_parms_put()
883 neigh_parms_put(neigh->parms); in neigh_destroy()
966 time_after(jiffies, n->used + NEIGH_VAR(n->parms, GC_STALETIME)))) { in neigh_periodic_work()
994 NEIGH_VAR(&tbl->parms, BASE_REACHABLE_TIME) >> 1); in neigh_periodic_work()
1000 struct neigh_parms *p = n->parms; in neigh_max_probes()
1065 neigh->confirmed + neigh->parms->reachable_time)) { in neigh_timer_handler()
1067 next = neigh->confirmed + neigh->parms->reachable_time; in neigh_timer_handler()
1070 NEIGH_VAR(neigh->parms, DELAY_PROBE_TIME))) { in neigh_timer_handler()
1075 next = now + NEIGH_VAR(neigh->parms, DELAY_PROBE_TIME); in neigh_timer_handler()
1086 NEIGH_VAR(neigh->parms, DELAY_PROBE_TIME))) { in neigh_timer_handler()
1092 next = neigh->confirmed + neigh->parms->reachable_time; in neigh_timer_handler()
1099 next = now + max(NEIGH_VAR(neigh->parms, RETRANS_TIME), in neigh_timer_handler()
1104 next = now + max(NEIGH_VAR(neigh->parms, RETRANS_TIME), HZ/100); in neigh_timer_handler()
1150 if (NEIGH_VAR(neigh->parms, MCAST_PROBES) + in __neigh_event_send()
1151 NEIGH_VAR(neigh->parms, APP_PROBES)) { in __neigh_event_send()
1155 NEIGH_VAR(neigh->parms, UCAST_PROBES)); in __neigh_event_send()
1159 next = now + max(NEIGH_VAR(neigh->parms, RETRANS_TIME), in __neigh_event_send()
1177 NEIGH_VAR(neigh->parms, DELAY_PROBE_TIME)); in __neigh_event_send()
1183 NEIGH_VAR(neigh->parms, QUEUE_LEN_BYTES)) { in __neigh_event_send()
1372 neigh->parms->reachable_time : in __neigh_update()
1385 (NEIGH_VAR(neigh->parms, BASE_REACHABLE_TIME) << 1); in __neigh_update()
1464 jiffies + max(NEIGH_VAR(neigh->parms, RETRANS_TIME), in __neigh_set_probe_once()
1576 NEIGH_VAR(&tbl->parms, DELAY_PROBE_TIME)); in neigh_managed_work()
1662 p = kmemdup(&tbl->parms, sizeof(*p), GFP_KERNEL); in neigh_parms_alloc()
1680 list_add(&p->list, &tbl->parms.list); in neigh_parms_alloc()
1691 struct neigh_parms *parms = in neigh_rcu_free_parms() local
1694 neigh_parms_put(parms); in neigh_rcu_free_parms()
1697 void neigh_parms_release(struct neigh_table *tbl, struct neigh_parms *parms) in neigh_parms_release() argument
1699 if (!parms || parms == &tbl->parms) in neigh_parms_release()
1702 list_del(&parms->list); in neigh_parms_release()
1703 parms->dead = 1; in neigh_parms_release()
1705 dev_put(parms->dev); in neigh_parms_release()
1706 call_rcu(&parms->rcu_head, neigh_rcu_free_parms); in neigh_parms_release()
1710 static void neigh_parms_destroy(struct neigh_parms *parms) in neigh_parms_destroy() argument
1712 kfree(parms); in neigh_parms_destroy()
1728 list_add(&tbl->parms.list, &tbl->parms_list); in neigh_table_init()
1729 write_pnet(&tbl->parms.net, &init_net); in neigh_table_init()
1730 refcount_set(&tbl->parms.refcnt, 1); in neigh_table_init()
1731 tbl->parms.reachable_time = in neigh_table_init()
1732 neigh_rand_reach_time(NEIGH_VAR(&tbl->parms, BASE_REACHABLE_TIME)); in neigh_table_init()
1762 tbl->parms.reachable_time); in neigh_table_init()
1771 tbl->last_rand = now + tbl->parms.reachable_time * 20; in neigh_table_init()
2058 static int neightbl_fill_parms(struct sk_buff *skb, struct neigh_parms *parms) in neightbl_fill_parms() argument
2066 if ((parms->dev && in neightbl_fill_parms()
2067 nla_put_u32(skb, NDTPA_IFINDEX, parms->dev->ifindex)) || in neightbl_fill_parms()
2068 nla_put_u32(skb, NDTPA_REFCNT, refcount_read(&parms->refcnt)) || in neightbl_fill_parms()
2070 NEIGH_VAR(parms, QUEUE_LEN_BYTES)) || in neightbl_fill_parms()
2073 NEIGH_VAR(parms, QUEUE_LEN_BYTES) / SKB_TRUESIZE(ETH_FRAME_LEN)) || in neightbl_fill_parms()
2074 nla_put_u32(skb, NDTPA_PROXY_QLEN, NEIGH_VAR(parms, PROXY_QLEN)) || in neightbl_fill_parms()
2075 nla_put_u32(skb, NDTPA_APP_PROBES, NEIGH_VAR(parms, APP_PROBES)) || in neightbl_fill_parms()
2077 NEIGH_VAR(parms, UCAST_PROBES)) || in neightbl_fill_parms()
2079 NEIGH_VAR(parms, MCAST_PROBES)) || in neightbl_fill_parms()
2081 NEIGH_VAR(parms, MCAST_REPROBES)) || in neightbl_fill_parms()
2082 nla_put_msecs(skb, NDTPA_REACHABLE_TIME, parms->reachable_time, in neightbl_fill_parms()
2085 NEIGH_VAR(parms, BASE_REACHABLE_TIME), NDTPA_PAD) || in neightbl_fill_parms()
2087 NEIGH_VAR(parms, GC_STALETIME), NDTPA_PAD) || in neightbl_fill_parms()
2089 NEIGH_VAR(parms, DELAY_PROBE_TIME), NDTPA_PAD) || in neightbl_fill_parms()
2091 NEIGH_VAR(parms, RETRANS_TIME), NDTPA_PAD) || in neightbl_fill_parms()
2093 NEIGH_VAR(parms, ANYCAST_DELAY), NDTPA_PAD) || in neightbl_fill_parms()
2095 NEIGH_VAR(parms, PROXY_DELAY), NDTPA_PAD) || in neightbl_fill_parms()
2097 NEIGH_VAR(parms, LOCKTIME), NDTPA_PAD)) in neightbl_fill_parms()
2181 BUG_ON(tbl->parms.dev); in neightbl_fill_info()
2182 if (neightbl_fill_parms(skb, &tbl->parms) < 0) in neightbl_fill_info()
2197 struct neigh_parms *parms, in neightbl_fill_param_info() argument
2216 neightbl_fill_parms(skb, parms) < 0) in neightbl_fill_param_info()
2474 p = list_next_entry(&tbl->parms, list); in neightbl_dump_info()