Lines Matching refs:ra
336 struct ip_ra_chain *ra = container_of(head, struct ip_ra_chain, rcu); in ip_ra_destroy_rcu() local
338 sock_put(ra->saved_sk); in ip_ra_destroy_rcu()
339 kfree(ra); in ip_ra_destroy_rcu()
345 struct ip_ra_chain *ra, *new_ra; in ip_ra_control() local
358 (ra = rcu_dereference_protected(*rap, in ip_ra_control()
360 rap = &ra->next) { in ip_ra_control()
361 if (ra->sk == sk) { in ip_ra_control()
368 ra->sk = NULL; in ip_ra_control()
369 RCU_INIT_POINTER(*rap, ra->next); in ip_ra_control()
372 if (ra->destructor) in ip_ra_control()
373 ra->destructor(sk); in ip_ra_control()
379 ra->saved_sk = sk; in ip_ra_control()
380 call_rcu(&ra->rcu, ip_ra_destroy_rcu); in ip_ra_control()
391 RCU_INIT_POINTER(new_ra->next, ra); in ip_ra_control()