Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 May 2010 17:39:28 +0000 (UTC)
From:      Pyun YongHyeon <yongari@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/dev/fxp if_fxp.c
Message-ID:  <201005141739.o4EHdfoQ040995@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
yongari     2010-05-14 17:39:28 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/fxp          if_fxp.c 
  Log:
  SVN rev 208084 on 2010-05-14 17:39:28Z by yongari
  
  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
  
  Revision  Changes    Path
  1.305     +7 -2      src/sys/dev/fxp/if_fxp.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005141739.o4EHdfoQ040995>