]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r212069,212071:
authoryongari <yongari@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 8 Oct 2010 18:49:59 +0000 (18:49 +0000)
committeryongari <yongari@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 8 Oct 2010 18:49:59 +0000 (18:49 +0000)
commit2f6cf14e13d824fe56b98731bbcc8efd66ac3dc8
treee4fb3801da741264309d9f53e954bae0c8a60bbe
parent5a7c2237289c8d40e1922f14bb1cc8894c5ee906
MFC r212069,212071:
r212069:
  bge_txeof() already checks whether it has to free transmitted mbufs
  or not by comparing reported TX consumer index with saved index. So
  remove unnecessary check done after freeing transmitted mbufs.
  While I'm here nuke unnecessary variable initializations.

r212071:
  Remove unnecessary atomic operation in bge_poll. bge(4) always
  holds a driver lock in the function entry and
  memory synchronization is handled by bus_dmamap_sync(9).

git-svn-id: svn://svn.freebsd.org/base/stable/8@213595 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/bge/if_bge.c