bmilekic 70d52016a3 Change m_devget()'s outdated and unused `offset' argument to actually mean
something: offset into the first mbuf of the target chain before copying
the source data over.

Make drivers using m_devget() with a first argument "data - ETHER_ALIGN"
to use the offset argument to pass ETHER_ALIGN in. The way it was previously
done is potentially dangerous if the source data was at the top of a page
and the offset caused the previous page to be copied (if the
previous page has not yet been appropriately mapped).

The old `offset' argument in m_devget() is not used anywhere (it's always
0) and dates back to ~1995 (and earlier?) when support for ethernet trailers
existed. With that support gone, it was merely collecting dust.

Tested on alpha by: jlemon
Partially submitted by: jlemon
Reviewed by: jlemon
MFC after: 3 weeks
2001-06-20 19:48:35 +00:00
..
2001-05-15 19:41:12 +00:00
2001-06-15 00:10:30 +00:00
2001-04-16 13:20:39 +00:00
2001-06-12 09:40:04 +00:00
2001-06-14 11:09:11 +00:00
2001-04-14 15:32:16 +00:00
2001-06-12 09:40:04 +00:00
2001-06-15 00:13:18 +00:00
2001-05-29 18:49:23 +00:00
2001-06-15 00:19:43 +00:00
2001-06-12 07:01:27 +00:00
2001-05-07 21:46:44 +00:00
2001-06-15 00:23:11 +00:00