Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Oct 2006 17:21:15 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/dev/em if_em.c
Message-ID:  <200610311721.k9VHLFpw058923@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2006-10-31 17:21:15 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/em           if_em.c 
  Log:
  Allocate receive and transmit data structures during attach() and free them
  during detach() similar to other NIC drivers rather than allocating them
  during init() and freeing them during stop():
  - Move creation of tx bus_dma tag amd maps and tx_buffer_area from
    em_setup_transmit_structures() to em_allocate_transmit_structures().
  - Call em_allocate_xxx_structures() in em_attach().
  - Only call em_free_xxx_structures() in em_detach().
  - Change em_setup_xxx_structures() to free any existing tx or rx buffers
    and in the case of rx repopulate the ring with newer buffers.
  
  Reviewed by:    jfv
  
  Revision  Changes    Path
  1.160     +82 -47    src/sys/dev/em/if_em.c



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