git: if_iwm - Avoid bus_dmamap_create()/_destroy() calls in iwm_rx_addbuf().

Imre Vadasz ivadasz at crater.dragonflybsd.org
Tue Jun 7 13:08:05 PDT 2016


commit cc440b26818b5dfdd9af504d71c1b0e6522b53ef
Author: Imre Vadász <imre at vdsz.com>
Date:   Tue Jun 7 21:50:29 2016 +0200

    if_iwm - Avoid bus_dmamap_create()/_destroy() calls in iwm_rx_addbuf().
    
    * Instead of doing bus_dmamap_create() and bus_dmamap_destroy() all the
      time, create an extra bus_dmamap_t which we can use to safely
      try bus_dmamap_load()-ing the new mbuf. On success we just swap the
      spare bus_dmamap_t with the data->map of that ring entry.

Summary of changes:
 sys/dev/netif/iwm/if_iwm.c    | 56 ++++++++++++++++++++++++++-----------------
 sys/dev/netif/iwm/if_iwmvar.h |  1 +
 2 files changed, 35 insertions(+), 22 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/cc440b26818b5dfdd9af504d71c1b0e6522b53ef


-- 
DragonFly BSD source repository



More information about the Commits mailing list