Lines Matching refs:maxvif
657 if (vifi < 0 || vifi >= mrt->maxvif) in vif_delete()
675 if (vifi + 1 == mrt->maxvif) { in vif_delete()
682 WRITE_ONCE(mrt->maxvif, tmp + 1); in vif_delete()
794 cache->mfc_un.res.maxvif = 0; in ipmr_update_thresholds()
797 for (vifi = 0; vifi < mrt->maxvif; vifi++) { in ipmr_update_thresholds()
803 if (cache->mfc_un.res.maxvif <= vifi) in ipmr_update_thresholds()
804 cache->mfc_un.res.maxvif = vifi + 1; in ipmr_update_thresholds()
906 if (vifi+1 > mrt->maxvif) in vif_add()
907 WRITE_ONCE(mrt->maxvif, vifi + 1); in vif_add()
1289 for (i = 0; i < mrt->maxvif; i++) { in mroute_clean_tables()
1634 if (vr->vifi >= mrt->maxvif) in ipmr_ioctl()
1636 vr->vifi = array_index_nospec(vr->vifi, mrt->maxvif); in ipmr_ioctl()
1703 if (vr.vifi >= mrt->maxvif) in ipmr_compat_ioctl()
1705 vr.vifi = array_index_nospec(vr.vifi, mrt->maxvif); in ipmr_compat_ioctl()
1758 for (ct = 0; ct < mrt->maxvif; ct++, v++) { in ipmr_device_event()
1945 for (ct = READ_ONCE(mrt->maxvif) - 1; ct >= 0; ct--) { in ipmr_find_vif()
2040 for (ct = c->_c.mfc_un.res.maxvif - 1; in ip_mr_forward()
2365 static size_t mroute_msgsize(bool unresolved, int maxvif) in mroute_msgsize() argument
2378 + maxvif * NLA_ALIGN(sizeof(struct rtnexthop)) in mroute_msgsize()
2394 mrt->maxvif), in mroute_netlink_event()
2567 skb = nlmsg_new(mroute_msgsize(false, mrt->maxvif), GFP_KERNEL); in ipmr_rtm_getroute()
2880 for (i = 0; i < mrt->maxvif; i++) { in ipmr_rtm_dumplink()
3003 n < mfc->_c.mfc_un.res.maxvif; n++) { in ipmr_mfc_seq_show()