/freebsd-current/sys/dev/netmap/ |
H A D | netmap.c | 174 * This is a system netdev/ifp with native netmap support. 175 * The ifp is detached from the host stack by redirecting: 179 * the ifp is attached to a bridge using bwrap, in which case it 183 * A system netdev/ifp without native netmap support. 278 * A generic adapter for the wrapped ifp will be created if needed, when 286 * na == NA(ifp) == netmap_hw_adapter created in DEVICE_netmap_attach() 319 * na == NA(ifp) == generic_netmap_adapter created in generic_netmap_attach() 327 * ifp->ndo_start_xmit == generic_ndo_start_xmit() 345 * ifp->ndo_start_xmit == generic_ndo_start_xmit() 639 netmap_disable_all_rings(if_t ifp) argument 652 netmap_enable_all_rings(if_t ifp) argument 660 netmap_make_zombie(if_t ifp) argument 671 netmap_undo_zombie(if_t ifp) argument 1467 netmap_get_hw_na(if_t ifp, struct netmap_mem_d *nmd, struct netmap_adapter **na) argument 1556 netmap_get_na(struct nmreq_header *hdr, struct netmap_adapter **na, if_t *ifp, struct netmap_mem_d *nmd, int create) argument 1673 netmap_unget_na(struct netmap_adapter *na, if_t ifp) argument 2746 if_t ifp = NULL; local 3041 if_t ifp; local 4080 if_t ifp = NULL; local 4214 netmap_detach(if_t ifp) argument 4260 netmap_transmit(if_t ifp, struct mbuf *m) argument 4500 netmap_rx_irq(if_t ifp, u_int q, u_int *work_done) argument 4525 if_t ifp = na->ifp; local 4541 if_t ifp = na->ifp; local [all...] |
/freebsd-current/sys/dev/usb/net/ |
H A D | if_cdceem.c | 424 if_t ifp; local 435 ifp = uether_getifp(ue); 447 if_inc_counter(ifp, IFCOUNTER_IERRORS, 1); 455 if_inc_counter(ifp, IFCOUNTER_IERRORS, 1); 462 if_inc_counter(ifp, IFCOUNTER_IQDROPS, 1); 471 if_inc_counter(ifp, IFCOUNTER_IQDROPS, 1); 491 if_inc_counter(ifp, IFCOUNTER_IERRORS, 1); 647 if_t ifp; local 656 ifp = uether_getifp(&sc->sc_ue); 659 m = if_dequeue(ifp); 712 if_t ifp; local 805 if_t ifp; local 833 if_t ifp; local [all...] |
/freebsd-current/sys/netinet6/ |
H A D | ip6_mroute.c | 267 * ifp->if_afdata. But it does not have any routes point 674 struct ifnet *ifp; local 690 if ((ifp = ifnet_byindex(mifcp->mif6c_pifi)) == NULL) { 695 NET_EPOCH_EXIT(et); /* XXXGL: unsafe ifp */ 699 ifp = if_alloc(IFT_OTHER); 701 if_initname(ifp, "register_mif", 0); 702 ifp->if_flags |= IFF_LOOPBACK; 703 if_attach(ifp); 704 multicast_register_if6 = ifp; 711 mifcp->mif6c_pifi = ifp 757 struct ifnet *ifp; local 1060 X_ip6_mforward(struct ip6_hdr *ip6, struct ifnet *ifp, struct mbuf *m) argument 1357 ip6_mdq(struct mbuf *m, struct ifnet *ifp, struct mf6c *rt) argument 1526 struct ifnet *ifp = mifp->m6_ifp; local [all...] |
/freebsd-current/sys/dev/mana/ |
H A D | mana_en.c | 87 mana_ifmedia_change(if_t ifp __unused) 93 mana_ifmedia_status(if_t ifp, struct ifmediareq *ifmr) argument 95 struct mana_port_context *apc = if_getsoftc(ifp); 98 if_printf(ifp, "Port not available\n"); 120 mana_get_counter(if_t ifp, ift_counter cnt) argument 122 struct mana_port_context *apc = if_getsoftc(ifp); 139 return (if_get_counter_default(ifp, cnt)); 144 mana_qflush(if_t ifp) argument 146 if_qflush(ifp); 165 mana_ioctl(if_t ifp, u_lon argument 802 mana_start_xmit(if_t ifp, struct mbuf *m) argument [all...] |
/freebsd-current/sys/dev/al_eth/ |
H A D | al_eth.c | 214 static int al_ioctl(if_t ifp, u_long, caddr_t); 274 if_t ifp; local 283 ifp = NULL; 337 adapter->netdev = ifp = if_alloc(IFT_ETHER); 339 if_setsoftc(ifp, adapter); 340 if_initname(ifp, device_get_name(dev), device_get_unit(dev)); 341 if_setdrvflagbits(ifp, 0, IFF_DRV_OACTIVE); 342 if_setflags(ifp, if_getdrvflags(ifp)); 343 if_setflagbits(ifp, IFF_BROADCAS 1020 if_t ifp = adapter->netdev; local 1724 al_mq_start(if_t ifp, struct mbuf *m) argument 1760 al_qflush(if_t ifp) argument 2827 al_get_counter(if_t ifp, ift_counter cnt) argument 2904 if_t ifp = adapter->netdev; local 3126 al_media_update(if_t ifp) argument 3137 al_media_status(if_t ifp, struct ifmediareq *ifmr) argument 3180 if_t ifp = adapter->netdev; local 3296 al_ioctl(if_t ifp, u_long command, caddr_t data) argument [all...] |
/freebsd-current/sys/dev/mlx5/mlx5_en/ |
H A D | mlx5_en_rx.c | 280 if_t ifp = rq->ifp; local 352 mb->m_pkthdr.rcvif = ifp; 353 mb->m_pkthdr.leaf_rcvif = ifp; 376 } else if (likely((if_getcapenable(ifp) & (IFCAP_RXCSUM | 502 CURVNET_SET_QUIET(if_getvnet(rq->ifp)); 538 rq->mbuf[wqe_counter].data, seglen, rq->ifp, &mb); 587 mb->m_pkthdr.numa_domain = if_getnumadomain(rq->ifp); 594 (if_getcapenable(rq->ifp) & IFCAP_LRO) == 0 || 597 if_input(rq->ifp, m [all...] |
/freebsd-current/sys/dev/qlxgb/ |
H A D | qla_isr.c | 59 if_t ifp = ha->ifp; local 117 mp->m_pkthdr.rcvif = ifp; 146 if_input(ifp, mp); 387 if_t ifp; local 392 ifp = ha->ifp; 398 } else if (!if_sendq_empty(ifp) && 399 QL_RUNNING(ifp)) {
|
H A D | qla_def.h | 147 if_t ifp; member in struct:qla_host 206 #define QL_RUNNING(ifp) \ 207 ((if_getdrvflags(ifp) & (IFF_DRV_RUNNING | IFF_DRV_OACTIVE)) == \
|
H A D | qla_ioctl.c | 54 if_getdunit(ha->ifp), 59 if_name(ha->ifp));
|
/freebsd-current/sys/nfs/ |
H A D | nfs_diskless.c | 182 if_t ifp; local 236 for (ifp = if_iter_start(&iter); ifp != NULL; ifp = if_iter_next(&iter)) { 237 cnt = if_foreach_lladdr(ifp, nfs_setup_diskless_ifa_cb, &ourdl); 244 if (ifp != NULL) 254 kern_setenv("boot.netif.name", if_name(ifp)); 256 strlcpy(nd3->myif.ifra_name, if_name(ifp), 295 strlcpy(nd->myif.ifra_name, if_name(ifp),
|
/freebsd-current/usr.sbin/yp_mkdb/ |
H A D | yp_mkdb.c | 114 FILE *ifp; local 186 ifp = stdin; 188 if ((ifp = fopen(infile, "r")) == NULL) 248 while (fgets((char *)&buf, sizeof(buf), ifp)) { 259 sizeof(buf) - strlen(buf), ifp);
|
/freebsd-current/sys/netinet/ |
H A D | tcp_offload.c | 64 struct ifnet *ifp; local 97 ifp = nh->nh_ifp; 99 if (nam->sa_family == AF_INET && !(ifp->if_capenable & IFCAP_TOE4)) 101 if (nam->sa_family == AF_INET6 && !(ifp->if_capenable & IFCAP_TOE6)) 104 tod = TOEDEV(ifp);
|
H A D | in_var.h | 105 #define LLTABLE(ifp) \ 106 ((struct in_ifinfo *)(ifp)->if_afdata[AF_INET])->ii_llt 145 #define INADDR_TO_IFP(addr, ifp) \ 147 /* struct ifnet *ifp; */ \ 152 (ifp) = (ia == NULL) ? NULL : ia->ia_ifp; \ 159 #define IFP_TO_IA(ifp, ia) \ 160 /* struct ifnet *ifp; */ \ 165 (ia) != NULL && (ia)->ia_ifp != (ifp); \
|
/freebsd-current/sys/arm/ti/cpsw/ |
H A D | if_cpsw.c | 998 if_t ifp; local 1027 ifp = sc->ifp = if_alloc(IFT_ETHER); 1028 if (ifp == NULL) { 1033 if_initname(ifp, device_get_name(sc->dev), sc->unit); 1034 if_setsoftc(ifp, sc); 1035 if_setflags(ifp, IFF_SIMPLEX | IFF_MULTICAST | IFF_BROADCAST); 1037 if_setcapenable(ifp, if_getcapabilities(ifp)); 1039 if_setinitfn(ifp, cpswp_ini 1161 if_t ifp; local 1292 if_t ifp; local 1399 cpswp_ioctl(if_t ifp, u_long command, caddr_t data) argument 1582 if_t ifp; local 1816 cpswp_start(if_t ifp) argument 2075 if_t ifp; local 2224 cpswp_ifmedia_sts(if_t ifp, struct ifmediareq *ifmr) argument 2242 cpswp_ifmedia_upd(if_t ifp) argument [all...] |
/freebsd-current/sys/dev/gve/ |
H A D | gve_tx.c | 309 if (__predict_false((if_getdrvflags(priv->ifp) & IFF_DRV_RUNNING) == 0)) 342 if (__predict_false((if_getdrvflags(priv->ifp) & IFF_DRV_RUNNING) == 0)) 696 struct ifnet *ifp = priv->ifp; local 699 while ((if_getdrvflags(ifp) & IFF_DRV_RUNNING) != 0 && 700 (mbuf = drbr_peek(ifp, tx->br)) != NULL) { 703 drbr_putback(ifp, tx->br, mbuf); 708 drbr_advance(ifp, tx->br); 709 BPF_MTAP(ifp, mbuf); 737 gve_xmit_ifp(if_t ifp, struc argument 789 gve_qflush(if_t ifp) argument [all...] |
/freebsd-current/sys/dev/dwc/ |
H A D | dwc1000_dma.c | 353 if_t ifp; local 359 ifp = sc->ifp; 387 if_inc_counter(sc->ifp, IFCOUNTER_IQDROPS, 1); 395 m->m_pkthdr.rcvif = ifp; 398 if_inc_counter(ifp, IFCOUNTER_IPACKETS, 1); 400 if ((if_getcapenable(ifp) & IFCAP_RXCSUM) != 0 && 416 if_input(ifp, m); 426 if_t ifp; local 432 ifp [all...] |
/freebsd-current/sys/netpfil/ipfilter/netinet/ |
H A D | ip_log.c | 344 qif_t *ifp; local 346 struct ifnet *ifp; local 354 ifp = fin->fin_ifp; 419 ipfl.fl_unit = (u_int)ifp->qf_ppa; 421 COPYIFNAME(fin->fin_v, ifp, ipfl.fl_ifname); 425 COPYIFNAME(fin->fin_v, ifp, ipfl.fl_ifname); 427 ipfl.fl_unit = (u_int)ifp->if_unit; 429 if ((ipfl.fl_ifname[0] = ifp->if_name[0])) 430 if ((ipfl.fl_ifname[1] = ifp->if_name[1])) 431 if ((ipfl.fl_ifname[2] = ifp [all...] |
/freebsd-current/sys/dev/qlxge/ |
H A D | qls_isr.c | 57 if_inc_counter(ha->ifp, IFCOUNTER_OPACKETS, 1); 128 if_t ifp = ha->ifp; local 169 mp->m_pkthdr.rcvif = ifp; 201 if_inc_counter(ifp, IFCOUNTER_IPACKETS, 1); 209 if_input(ifp, mp);
|
/freebsd-current/sys/dev/bxe/ |
H A D | bxe_debug.c | 296 if_t ifp = NULL; local 332 if ((ifp = ifunit_ref(if_xname)) == NULL) /* XXX */ 338 sc = (struct bxe_softc *)if_getsoftc(ifp); 339 db_printf("ifnet=%p (%s)\n", ifp, if_xname); 358 if (ifp) if_rele(ifp);
|
/freebsd-current/sys/security/mac_ipacl/ |
H A D | mac_ipacl.c | 320 struct ipacl_addr *ip_addr, if_t ifp) 347 strcmp(rule->if_name, if_name(ifp))) 400 const struct in_addr *ia, if_t ifp) 411 return rules_check(cred, &ip4_addr, ifp); 420 const struct in6_addr *ia6, if_t ifp) 432 return rules_check(cred, &ip6_addr, ifp); 319 rules_check(struct ucred *cred, struct ipacl_addr *ip_addr, if_t ifp) argument 399 ipacl_ip4_check_jail(struct ucred *cred, const struct in_addr *ia, if_t ifp) argument 419 ipacl_ip6_check_jail(struct ucred *cred, const struct in6_addr *ia6, if_t ifp) argument
|
/freebsd-current/sys/dev/ixgbe/ |
H A D | if_fdir.c | 56 if_t ifp = iflib_get_ifp(ctx); local 67 if_setdrvflagbits(ifp, IFF_DRV_RUNNING, 0);
|
/freebsd-current/sys/dev/liquidio/ |
H A D | lio_network.h | 97 if_t ifp; member in struct:lio 137 * @param ifp pointer to network device 141 int lio_set_feature(if_t ifp, int cmd, uint16_t param1);
|
/freebsd-current/sys/dev/sfxge/ |
H A D | sfxge_tx.h | 245 extern void sfxge_if_qflush(if_t ifp); 246 extern int sfxge_if_transmit(if_t ifp, struct mbuf *m);
|
/freebsd-current/sys/net/ |
H A D | pfil.c | 123 pfil_fake_mbuf(pfil_mbuf_chk_t func, void *mem, u_int len, struct ifnet *ifp, argument 134 rv = func(mp, ifp, flags, ruleset, NULL); 148 struct ifnet *ifp, struct mbuf **m) 161 rv = link->link_mem_chk(mem, len, flags, ifp, 164 rv = pfil_fake_mbuf(link->link_mbuf_chk, mem, len, ifp, 167 rv = link->link_mbuf_chk(m, ifp, flags, 181 pfil_mem_in(struct pfil_head *head, void *mem, u_int len, struct ifnet *ifp, argument 185 return (pfil_mem_common(&head->head_in, mem, len, PFIL_IN, ifp, m)); 189 pfil_mem_out(struct pfil_head *head, void *mem, u_int len, struct ifnet *ifp, argument 193 return (pfil_mem_common(&head->head_out, mem, len, PFIL_OUT, ifp, 147 pfil_mem_common(pfil_chain_t *pch, void *mem, u_int len, int flags, struct ifnet *ifp, struct mbuf **m) argument 197 pfil_mbuf_common(pfil_chain_t *pch, struct mbuf **m, struct ifnet *ifp, int flags, struct inpcb *inp) argument 226 pfil_mbuf_in(struct pfil_head *head, struct mbuf **m, struct ifnet *ifp, struct inpcb *inp) argument 234 pfil_mbuf_out(struct pfil_head *head, struct mbuf **m, struct ifnet *ifp, struct inpcb *inp) argument 242 pfil_mbuf_fwd(struct pfil_head *head, struct mbuf **m, struct ifnet *ifp, struct inpcb *inp) argument [all...] |
/freebsd-current/sys/dev/ice/ |
H A D | ice_iflib.h | 201 struct ifnet *ifp; member in struct:ice_mirr_if 228 * @ifp: pointer to the ifnet structure 277 struct ifnet *ifp; member in struct:ice_softc
|