Lines Matching refs:_c
677 &mfc->_c, tb_id, &net->ipv4.ipmr_seq); in call_ipmr_mfc_entry_notifiers()
752 call_rcu(&c->_c.rcu, ipmr_cache_free_rcu); in ipmr_cache_free()
766 while ((skb = skb_dequeue(&c->_c.mfc_un.unres.unresolved))) { in ipmr_destroy_unres()
998 c->_c.mfc_un.res.last_assert = jiffies - MFC_ASSERT_THRESH - 1; in ipmr_cache_alloc()
999 c->_c.mfc_un.res.minvif = MAXVIFS; in ipmr_cache_alloc()
1000 c->_c.free = ipmr_cache_free_rcu; in ipmr_cache_alloc()
1001 refcount_set(&c->_c.mfc_un.res.refcount, 1); in ipmr_cache_alloc()
1011 skb_queue_head_init(&c->_c.mfc_un.unres.unresolved); in ipmr_cache_alloc_unres()
1012 c->_c.mfc_un.unres.expires = jiffies + 10 * HZ; in ipmr_cache_alloc_unres()
1025 while ((skb = __skb_dequeue(&uc->_c.mfc_un.unres.unresolved))) { in ipmr_cache_resolve()
1030 if (mr_fill_mroute(mrt, skb, &c->_c, in ipmr_cache_resolve()
1157 list_for_each_entry(c, &mrt->mfc_unres_queue, _c.list) { in ipmr_cache_unresolved()
1174 c->_c.mfc_parent = -1; in ipmr_cache_unresolved()
1184 list_add(&c->_c.list, &mrt->mfc_unres_queue); in ipmr_cache_unresolved()
1189 c->_c.mfc_un.unres.expires); in ipmr_cache_unresolved()
1193 if (c->_c.mfc_un.unres.unresolved.qlen > 3) { in ipmr_cache_unresolved()
1204 skb_queue_tail(&c->_c.mfc_un.unres.unresolved, skb); in ipmr_cache_unresolved()
1230 rhltable_remove(&mrt->mfc_hash, &c->_c.mnode, ipmr_rht_params); in ipmr_mfc_delete()
1231 list_del_rcu(&c->_c.list); in ipmr_mfc_delete()
1234 mr_cache_put(&c->_c); in ipmr_mfc_delete()
1256 c->_c.mfc_parent = mfc->mfcc_parent; in ipmr_mfc_add()
1257 ipmr_update_thresholds(mrt, &c->_c, mfc->mfcc_ttls); in ipmr_mfc_add()
1259 c->_c.mfc_flags |= MFC_STATIC; in ipmr_mfc_add()
1277 c->_c.mfc_parent = mfc->mfcc_parent; in ipmr_mfc_add()
1278 ipmr_update_thresholds(mrt, &c->_c, mfc->mfcc_ttls); in ipmr_mfc_add()
1280 c->_c.mfc_flags |= MFC_STATIC; in ipmr_mfc_add()
1282 ret = rhltable_insert_key(&mrt->mfc_hash, &c->cmparg, &c->_c.mnode, in ipmr_mfc_add()
1289 list_add_tail_rcu(&c->_c.list, &mrt->mfc_cache_list); in ipmr_mfc_add()
1717 sr->pktcnt = atomic_long_read(&c->_c.mfc_un.res.pkt); in ipmr_ioctl()
1718 sr->bytecnt = atomic_long_read(&c->_c.mfc_un.res.bytes); in ipmr_ioctl()
1719 sr->wrong_if = atomic_long_read(&c->_c.mfc_un.res.wrong_if); in ipmr_ioctl()
1789 sr.pktcnt = atomic_long_read(&c->_c.mfc_un.res.pkt); in ipmr_compat_ioctl()
1790 sr.bytecnt = atomic_long_read(&c->_c.mfc_un.res.bytes); in ipmr_compat_ioctl()
1791 sr.wrong_if = atomic_long_read(&c->_c.mfc_un.res.wrong_if); in ipmr_compat_ioctl()
2046 vif = c->_c.mfc_parent; in ip_mr_forward()
2047 atomic_long_inc(&c->_c.mfc_un.res.pkt); in ip_mr_forward()
2048 atomic_long_add(skb->len, &c->_c.mfc_un.res.bytes); in ip_mr_forward()
2049 WRITE_ONCE(c->_c.mfc_un.res.lastuse, jiffies); in ip_mr_forward()
2059 cache_proxy->_c.mfc_un.res.ttls[true_vifi] < 255) in ip_mr_forward()
2080 atomic_long_inc(&c->_c.mfc_un.res.wrong_if); in ip_mr_forward()
2089 c->_c.mfc_un.res.ttls[true_vifi] < 255) && in ip_mr_forward()
2091 c->_c.mfc_un.res.last_assert + in ip_mr_forward()
2093 c->_c.mfc_un.res.last_assert = jiffies; in ip_mr_forward()
2112 true_vifi != c->_c.mfc_parent && in ip_mr_forward()
2114 c->_c.mfc_un.res.ttls[c->_c.mfc_parent]) { in ip_mr_forward()
2119 psend = c->_c.mfc_parent; in ip_mr_forward()
2124 for (ct = c->_c.mfc_un.res.maxvif - 1; in ip_mr_forward()
2125 ct >= c->_c.mfc_un.res.minvif; ct--) { in ip_mr_forward()
2129 ip_hdr(skb)->ttl > c->_c.mfc_un.res.ttls[ct]) { in ip_mr_forward()
2290 atomic_long_inc(&c->_c.mfc_un.res.pkt); in ip_mr_output_finish()
2291 atomic_long_add(skb->len, &c->_c.mfc_un.res.bytes); in ip_mr_output_finish()
2292 WRITE_ONCE(c->_c.mfc_un.res.lastuse, jiffies); in ip_mr_output_finish()
2298 c->_c.mfc_un.res.ttls[c->_c.mfc_parent]) { in ip_mr_output_finish()
2303 psend = c->_c.mfc_parent; in ip_mr_output_finish()
2309 for (ct = c->_c.mfc_un.res.maxvif - 1; in ip_mr_output_finish()
2310 ct >= c->_c.mfc_un.res.minvif; ct--) { in ip_mr_output_finish()
2311 if (ip_hdr(skb)->ttl > c->_c.mfc_un.res.ttls[ct]) { in ip_mr_output_finish()
2376 vif = cache->_c.mfc_parent; in ip_mr_output()
2498 err = mr_fill_mroute(mrt, skb, &cache->_c, rtm); in ipmr_get_route()
2525 if (c->_c.mfc_flags & MFC_STATIC) in ipmr_fill_mroute()
2534 err = mr_fill_mroute(mrt, skb, &c->_c, rtm); in ipmr_fill_mroute()
2583 skb = nlmsg_new(mroute_msgsize(mfc->_c.mfc_parent >= MAXVIFS), in mroute_netlink_event()
3219 mfc->_c.mfc_parent); in ipmr_mfc_seq_show()
3223 atomic_long_read(&mfc->_c.mfc_un.res.pkt), in ipmr_mfc_seq_show()
3224 atomic_long_read(&mfc->_c.mfc_un.res.bytes), in ipmr_mfc_seq_show()
3225 atomic_long_read(&mfc->_c.mfc_un.res.wrong_if)); in ipmr_mfc_seq_show()
3226 for (n = mfc->_c.mfc_un.res.minvif; in ipmr_mfc_seq_show()
3227 n < mfc->_c.mfc_un.res.maxvif; n++) { in ipmr_mfc_seq_show()
3229 mfc->_c.mfc_un.res.ttls[n] < 255) in ipmr_mfc_seq_show()
3232 n, mfc->_c.mfc_un.res.ttls[n]); in ipmr_mfc_seq_show()