-/* $OpenBSD: if_cnmac.c,v 1.21 2014/12/22 02:26:53 tedu Exp $ */
+/* $OpenBSD: if_cnmac.c,v 1.22 2015/04/30 21:52:49 mpi Exp $ */
/*
* Copyright (c) 2007 Internet Initiative Japan, Inc.
m->m_data = data;
m->m_len = m->m_pkthdr.len = (word1 & PIP_WQE_WORD1_LEN) >> 48;
- m->m_pkthdr.rcvif = &sc->sc_arpcom.ac_if;
#if 0
/*
* not readonly buffer
{
int result = 0;
struct ifnet *ifp;
+ struct mbuf_list ml = MBUF_LIST_INITIALIZER();
struct mbuf *m;
uint64_t word2;
octeon_eth_send_queue_flush_fetch(sc);
octeon_eth_send_queue_flush(sc);
}
- /* XXX */
-
- OCTEON_ETH_TAP(ifp, m, BPF_DIRECTION_IN);
/* XXX */
if (sc->sc_flush)
octeon_eth_send_queue_flush_sync(sc);
- /* XXX */
- ether_input_mbuf(ifp, m);
+ ml_enqueue(&ml, m);
+ if_input(ifp, &ml);
return 0;