Lines Matching refs:maxvif
499 n < mfc->_c.mfc_un.res.maxvif; n++) { in ipmr_mfc_seq_show()
706 if (vifi < 0 || vifi >= mrt->maxvif) in mif6_delete()
728 if (vifi + 1 == mrt->maxvif) { in mif6_delete()
734 WRITE_ONCE(mrt->maxvif, tmp + 1); in mif6_delete()
846 cache->mfc_un.res.maxvif = 0; in ip6mr_update_thresholds()
849 for (vifi = 0; vifi < mrt->maxvif; vifi++) { in ip6mr_update_thresholds()
855 if (cache->mfc_un.res.maxvif <= vifi) in ip6mr_update_thresholds()
856 cache->mfc_un.res.maxvif = vifi + 1; in ip6mr_update_thresholds()
930 if (vifi + 1 > mrt->maxvif) in mif6_add()
931 WRITE_ONCE(mrt->maxvif, vifi + 1); in mif6_add()
1254 for (ct = 0; ct < mrt->maxvif; ct++, v++) { in ip6mr_device_event()
1526 for (i = 0; i < mrt->maxvif; i++) { in mroute_clean_tables()
1898 if (vr->mifi >= mrt->maxvif) in ip6mr_ioctl()
1900 vr->mifi = array_index_nospec(vr->mifi, mrt->maxvif); in ip6mr_ioctl()
1967 if (vr.mifi >= mrt->maxvif) in ip6mr_compat_ioctl()
1969 vr.mifi = array_index_nospec(vr.mifi, mrt->maxvif); in ip6mr_compat_ioctl()
2100 for (ct = READ_ONCE(mrt->maxvif) - 1; ct >= 0; ct--) { in ip6mr_find_vif()
2183 for (ct = c->_c.mfc_un.res.maxvif - 1; in ip6_mr_forward()
2395 static int mr6_msgsize(bool unresolved, int maxvif) in mr6_msgsize() argument
2408 + maxvif * NLA_ALIGN(sizeof(struct rtnexthop)) in mr6_msgsize()
2423 skb = nlmsg_new(mr6_msgsize(mfc->_c.mfc_parent >= MAXMIFS, mrt->maxvif), in mr6_netlink_event()
2581 skb = nlmsg_new(mr6_msgsize(false, mrt->maxvif), GFP_KERNEL); in ip6mr_rtm_getroute()