Lines Matching refs:vifi
699 static int mif6_delete(struct mr_table *mrt, int vifi, int notify, in mif6_delete() argument
706 if (vifi < 0 || vifi >= mrt->maxvif) in mif6_delete()
709 v = &mrt->vif_table[vifi]; in mif6_delete()
717 vifi, mrt->id); in mif6_delete()
722 if (vifi == mrt->mroute_reg_vif_num) { in mif6_delete()
728 if (vifi + 1 == mrt->maxvif) { in mif6_delete()
730 for (tmp = vifi - 1; tmp >= 0; tmp--) { in mif6_delete()
843 int vifi; in ip6mr_update_thresholds() local
849 for (vifi = 0; vifi < mrt->maxvif; vifi++) { in ip6mr_update_thresholds()
850 if (VIF_EXISTS(mrt, vifi) && in ip6mr_update_thresholds()
851 ttls[vifi] && ttls[vifi] < 255) { in ip6mr_update_thresholds()
852 cache->mfc_un.res.ttls[vifi] = ttls[vifi]; in ip6mr_update_thresholds()
853 if (cache->mfc_un.res.minvif > vifi) in ip6mr_update_thresholds()
854 cache->mfc_un.res.minvif = 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()
865 int vifi = vifc->mif6c_mifi; in mif6_add() local
866 struct vif_device *v = &mrt->vif_table[vifi]; in mif6_add()
872 if (VIF_EXISTS(mrt, vifi)) in mif6_add()
928 WRITE_ONCE(mrt->mroute_reg_vif_num, vifi); in mif6_add()
930 if (vifi + 1 > mrt->maxvif) in mif6_add()
931 WRITE_ONCE(mrt->maxvif, vifi + 1); in mif6_add()
934 v, dev, vifi, mrt->id); in mif6_add()
2031 struct sk_buff *skb, int vifi) in ip6mr_forward2() argument
2033 struct vif_device *vif = &mrt->vif_table[vifi]; in ip6mr_forward2()
2049 ip6mr_cache_report(mrt, skb, vifi, MRT6MSG_WHOLEPKT); in ip6mr_forward2()