freebsd-dev/sys/dev/fxp
Pyun YongHyeon f7a5f7371a If controller received bad frames make sure to update newly added
RFA. Also drop frames that have either CRC error or alignment
error. Normally bad frames are not received at all. But controllers
running in promiscuous mode will receive bad frames. 82557 will
also receive bad frames to receive VLAN oversized frames.

While I'm here mark RNR condition if driver happen to see RNR in
RFA status and restart RU to receive frames again. Because driver
checks all received frames in RX loop, RNR condition could be set
in the middle of RX processing. Just relying on RNR interrupt was
not enough.

This change fixes "Memory modified after free" issue when fxp(4)
is running as a member of if_bridge(4).

Tested by:	Larry Baird <lab <> gta dot com>
MFC after:	5 days
2010-05-14 17:39:28 +00:00
..
if_fxp.c If controller received bad frames make sure to update newly added 2010-05-14 17:39:28 +00:00
if_fxpreg.h Export hardware MAC statistics through sysctl node. Previously 2010-05-09 22:16:15 +00:00
if_fxpvar.h Export hardware MAC statistics through sysctl node. Previously 2010-05-09 22:16:15 +00:00
rcvbundl.h Add a microcode to implement receive bundling for 82551 chipsets with 2005-04-21 19:34:57 +00:00