diff options
author | kmacy <kmacy@FreeBSD.org> | 2009-04-27 22:53:35 +0000 |
---|---|---|
committer | kmacy <kmacy@FreeBSD.org> | 2009-04-27 22:53:35 +0000 |
commit | 73893c16851409579be0e795d1188799a52c6842 (patch) | |
tree | 388cda8014712748d5dd193a4af862806e6e72cf /sys/dev/xl | |
parent | fe88b83c9d8f54837361786ba6a689e3123b643b (diff) | |
download | FreeBSD-src-73893c16851409579be0e795d1188799a52c6842.zip FreeBSD-src-73893c16851409579be0e795d1188799a52c6842.tar.gz |
remove dead code with reference to IFQ_HANDOFF
Diffstat (limited to 'sys/dev/xl')
-rw-r--r-- | sys/dev/xl/if_xl.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/sys/dev/xl/if_xl.c b/sys/dev/xl/if_xl.c index 67e3bed..073aa41 100644 --- a/sys/dev/xl/if_xl.c +++ b/sys/dev/xl/if_xl.c @@ -798,32 +798,6 @@ xl_setmulti_hash(struct xl_softc *sc) CSR_WRITE_2(sc, XL_COMMAND, rxfilt | XL_CMD_RX_SET_FILT); } -#ifdef notdef -static void -xl_testpacket(struct xl_softc *sc) -{ - struct mbuf *m; - struct ifnet *ifp = sc->xl_ifp; - - MGETHDR(m, M_DONTWAIT, MT_DATA); - - if (m == NULL) - return; - - bcopy(IF_LLADDR(sc->xl_ifp), - mtod(m, struct ether_header *)->ether_dhost, ETHER_ADDR_LEN); - bcopy(IF_LLADDR(sc->xl_ifp), - mtod(m, struct ether_header *)->ether_shost, ETHER_ADDR_LEN); - mtod(m, struct ether_header *)->ether_type = htons(3); - mtod(m, unsigned char *)[14] = 0; - mtod(m, unsigned char *)[15] = 0; - mtod(m, unsigned char *)[16] = 0xE3; - m->m_len = m->m_pkthdr.len = sizeof(struct ether_header) + 3; - IFQ_ENQUEUE(&ifp->if_snd, m); - xl_start(ifp); -} -#endif - static void xl_setcfg(struct xl_softc *sc) { |