Andrew Boyd(deleted)
|
RE: io-pkt shared memory (PCIe) driver, sending packets up the stack
|
Andrew Boyd(deleted)
12/02/2009 3:54 PM
post43050
|
RE: io-pkt shared memory (PCIe) driver, sending packets up the stack
In your rx processing, make sure you set:
m->m_len
m->m_pkthdr.len
m->pkthdr.rcvif
before you pass the mbuf up.
Also, be sure you do the NBPFILTER
thing - it is not optional.
Again, copy the existing drivers.
--
aboyd
|
|
|
gary anderson
|
Re: io-pkt shared memory (PCIe) driver, sending packets up the stack
|
gary anderson
12/02/2009 4:30 PM
post43055
|
Re: io-pkt shared memory (PCIe) driver, sending packets up the stack
Patrick,
The native_drvr.txt was very helpful. By defrag'ing I'm guess that you mean to traverse the linked list of m_bufs. I
have done that as it was done in the sam.c example.
I guess I have a more fundamental question on receive. Does the m_buf chain passed up in the ifp->input() call contain
a complete packet or just an arbitrary set of received bytes?
Gary
|
|
|