John Polstra writes:
 > On the i386, living with the misalignment is probably the best
 > solution, unfortunately.  The only alternatives I can think of are:
 > 
 >     - bcopy the packet up by 2 bytes after reception to align the
 >       payload, or
 > 
 >     - disable PCI-X mode on the bus
 > 

If the bge's API allows it, you could setup a receive descriptor with
a length of 14 bytes (size of ethernet header), and start the next
descripter 2 bytes after it (at a 16 byte offset from the front of the
mbuf).  When the receive is done, just copy the 14 bytes.

Drew



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to