mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
Set m_pkthdr.len and m_pkthdr.rcvif.
This commit is contained in:
parent
6b7b44acd9
commit
9bfe35c80d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=155443
@ -569,7 +569,8 @@ ate_intr(void *xsc)
|
||||
status = RD4(sc, ETH_ISR);
|
||||
if (status == 0)
|
||||
return;
|
||||
printf("IT IS %x\n", RD4(sc, ETH_RSR));
|
||||
printf("IT IS %x %x\n", RD4(sc, ETH_RSR), RD4(sc, ETH_CTL));
|
||||
|
||||
if (status & ETH_ISR_RCOM) {
|
||||
bus_dmamap_sync(sc->rx_desc_tag, sc->rx_desc_map,
|
||||
BUS_DMASYNC_POSTREAD);
|
||||
@ -613,6 +614,8 @@ ate_intr(void *xsc)
|
||||
}
|
||||
mb->m_len = sc->rx_descs[i].status &
|
||||
ETH_LEN_MASK;
|
||||
mb->m_pkthdr.len = mb->m_len;
|
||||
mb->m_pkthdr.rcvif = sc->ifp;
|
||||
/*
|
||||
* For the last buffer, set the wrap bit so
|
||||
* the controller restarts from the first
|
||||
|
Loading…
Reference in New Issue
Block a user