if_iwm - Avoid bus_dmamap_create()/_destroy() calls in iwm_rx_addbuf().
authorImre Vadász <imre@vdsz.com>
Tue, 7 Jun 2016 19:50:29 +0000 (21:50 +0200)
committerImre Vadász <imre@vdsz.com>
Tue, 7 Jun 2016 20:07:24 +0000 (22:07 +0200)
commitcc440b26818b5dfdd9af504d71c1b0e6522b53ef
treeb8f280d28e26096226cadd3fdeb14cb35c2d9770
parent702e37befa8a1b79c72ec45a0a9290265d334641
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.
sys/dev/netif/iwm/if_iwm.c
sys/dev/netif/iwm/if_iwmvar.h