Lines Matching defs:vif
85 /* Big lock, protecting vif table, mrt cache and mroute socket state.
456 const struct mif_device *vif = v;
457 const char *name = vif->dev ? vif->dev->name : "none";
461 vif - mrt->vif6_table,
462 name, vif->bytes_in, vif->pkt_in,
463 vif->bytes_out, vif->pkt_out,
464 vif->flags);
937 /* Is vif busy ? */
1540 * Close the multicast socket, and clear the vif tables etc
1550 * Shut down all active vif entries
1661 struct mif6ctl vif;
1690 if (optlen < sizeof(vif))
1692 if (copy_from_user(&vif, optval, sizeof(vif)))
1694 if (vif.mif6c_mifi >= MAXMIFS)
1697 ret = mif6_add(net, mrt, &vif, sk == mrt->mroute6_sk);
1858 struct mif_device *vif;
1874 vif = &mrt->vif6_table[vr.mifi];
1876 vr.icount = vif->pkt_in;
1877 vr.ocount = vif->pkt_out;
1878 vr.ibytes = vif->bytes_in;
1879 vr.obytes = vif->bytes_out;
1932 struct mif_device *vif;
1948 vif = &mrt->vif6_table[vr.mifi];
1950 vr.icount = vif->pkt_in;
1951 vr.ocount = vif->pkt_out;
1952 vr.ibytes = vif->bytes_in;
1953 vr.obytes = vif->bytes_out;
2003 struct mif_device *vif = &mrt->vif6_table[vifi];
2008 if (vif->dev == NULL)
2012 if (vif->flags & MIFF_REGISTER) {
2013 vif->pkt_out++;
2014 vif->bytes_out += skb->len;
2015 vif->dev->stats.tx_bytes += skb->len;
2016 vif->dev->stats.tx_packets++;
2025 .flowi6_oif = vif->link,
2049 dev = vif->dev;
2051 vif->pkt_out++;
2052 vif->bytes_out += skb->len;
2087 int vif, ct;
2090 vif = cache->mf6c_parent;
2100 cache_proxy = ip6mr_cache_find_any_parent(mrt, vif);
2109 if (mrt->vif6_table[vif].dev != skb->dev) {
2129 mrt->vif6_table[vif].pkt_in++;
2130 mrt->vif6_table[vif].bytes_in += skb->len;
2198 int vif = ip6mr_find_vif(mrt, skb->dev);
2200 if (vif >= 0)
2203 vif);
2210 int vif;
2212 vif = ip6mr_find_vif(mrt, skb->dev);
2213 if (vif >= 0) {
2214 int err = ip6mr_cache_unresolved(mrt, vif, skb);
2293 int vif = ip6mr_find_vif(mrt, skb->dev);
2295 if (vif >= 0)
2297 vif);
2304 int vif;
2312 if (dev == NULL || (vif = ip6mr_find_vif(mrt, dev)) < 0) {
2341 err = ip6mr_cache_unresolved(mrt, vif, skb2);