Lines Matching refs:vif

42  * - function pointer field in vif, void *vif_sendit()
92 * vitable is a fixed length array of vif structs. There is no lock to protect
95 * current state of a vif structure. One special state that needs mention
96 * is when the vif is marked VIF_MARK_NOTINUSE but refcnt != 0. This indicates
97 * that vif is being initalized.
99 * in when the recfnt is > 1, the vif structure is marked VIF_MARK_CONDEMNED
102 * vif struct stores a pointer to the ipif in v_ipif, to prevent ipif/ill
107 * of the vif struct.
134 * acquring vif or mfc locks. These locks protect some global variables.
175 static void del_vifp(struct vif *);
176 static void encap_send(ipha_t *, mblk_t *, struct vif *, ipaddr_t);
188 static void phyint_send(ipha_t *, mblk_t *, struct vif *, ipaddr_t);
190 static void register_send(ipha_t *, mblk_t *, struct vif *, ipaddr_t);
196 static int priority(struct vif *, ipha_t *);
197 static void tbf_control(struct vif *, mblk_t *, ipha_t *);
198 static int tbf_dq_sel(struct vif *, ipha_t *);
199 static void tbf_process_q(struct vif *);
200 static void tbf_queue(struct vif *, mblk_t *);
202 static void tbf_send_packet(struct vif *, mblk_t *);
203 static void tbf_update_tokens(struct vif *);
472 * Returns the input and output packet and byte counts on the vif provided.
581 ipst->ips_vifs = kmem_zalloc(sizeof (struct vif) * (MAXVIFS+1),
593 * tbftable -> each vif has one of these for storing info.
650 struct vif *vifp = ipst->ips_vifs + vifi;
654 * if the vif is active mark it condemned.
767 kmem_free(ipst->ips_vifs, sizeof (struct vif) * (MAXVIFS+1));
801 unlock_good_vif(struct vif *vifp)
809 lock_good_vif(struct vif *vifp)
832 * Add a vif to the vif table.
837 struct vif *vifp = ipst->ips_vifs + vifcp->vifc_vifi;
863 * ill_delete will block till the vif is deleted by adding a refcnt
873 /* Incoming vif should not be 0 */
898 * Needed to ensure that src isn't left over from before vif was added.
918 /* Phyint or Register vif */
1007 /* initialize per vif pkt counters */
1036 /* Delete a vif from the vif table. */
1038 del_vifp(struct vif *vifp)
1101 struct vif *vifp = ipst->ips_vifs + *vifip;
1109 * Here we are not looking at the vif that is being initialized
1186 ip0dbg(("ADD_MFC: NULL ipif for parent vif %d\n",
1979 struct vif *vifp;
1994 /* Macro to send packet on vif */
2043 * Don't forward if it didn't arrive from the parent vif for its
2123 * For each vif, decide if a copy of the packet should be forwarded.
2125 * - the vif threshold ttl is non-zero AND
2126 * - the pkt ttl exceeds the vif's threshold
2127 * A non-zero mfc_ttl indicates that the vif is part of
2164 phyint_send(ipha_t *ipha, mblk_t *mp, struct vif *vifp, ipaddr_t dst)
2196 register_send(ipha_t *ipha, mblk_t *mp, struct vif *vifp, ipaddr_t dst)
2436 * Avoid this in no register vif
2536 encap_send(ipha_t *ipha, mblk_t *mp, struct vif *vifp, ipaddr_t dst)
2546 "encap_send: vif %ld enter",
2613 struct vif *vifp;
2663 struct vif *vife;
2679 "vif %ld with %x",
2695 ip1dbg(("ip_mroute_decap: vif %ld no tunnel with %x\n",
2703 * verify that the packet arrived over the correct vif.)
2827 tbf_control(struct vif *vifp, mblk_t *mp, ipha_t *ipha)
2846 "tbf_ctrl: SEND vif %ld, qlen %d, ipha_dst 0x%x",
2861 "tbf_control: vif %ld, TOKENS %d, pkt len %lu, qlen %d",
2896 "vif %ld src 0x%x dst 0x%x\n",
2934 tbf_queue(struct vif *vifp, mblk_t *mp)
2942 "tbf_queue: vif %ld", (ptrdiff_t)(vifp - ipst->ips_vifs));
2962 * Process the queue at the vif interface.
2968 tbf_process_q(struct vif *vifp)
2978 "tbf_process_q 1: vif %ld qlen = %d",
3018 struct vif *vifp = arg;
3036 "tbf_reprcess_q: vif %ld timeout id = %p",
3048 tbf_dq_sel(struct vif *vifp, ipha_t *ipha)
3060 "dq_sel: vif %ld dst 0x%x",
3097 tbf_send_packet(struct vif *vifp, mblk_t *mp)
3112 "tbf_send_packet: ENCAP tunnel vif %ld",
3133 * ip_xmit_attr_t in each vif thereby caching the ire/nce.
3160 "tbf_send_pkt: phyint forward vif %ld dst = 0x%x",
3200 tbf_update_tokens(struct vif *vifp)
3231 "tbf_update_tok: tm %lld tok %d vif %ld",
3239 * of obtaining the port no. Hence, the vif must be
3244 priority(struct vif *vifp, ipha_t *ipha)