git: if_iwm - Process multiple frames per RX buffer.

Imre Vadasz ivadasz at crater.dragonflybsd.org
Wed Oct 19 08:26:35 PDT 2016


commit b5eb43f0280bbcfd26af51cf5a4b8e8ff3590b67
Author: Imre Vadász <imre at vdsz.com>
Date:   Sun Sep 4 10:51:11 2016 +0200

    if_iwm - Process multiple frames per RX buffer.
    
    * Factor out iwm_handle_rxb() function from iwm_notif_intr().
    
    * Removing the IWM_FH_RCSR_CHNL0_RX_CONFIG_SINGLE_FRAME_MSK flag allows
      the device to put multiple frames (both command responses and 80211
      frames) into a single RX buffer.
    
    * Uses m_copym() to split up the receive buffers when multiple 80211
      frames are received in one RX buffer. The effect is basically the same
      as when using m_split(), but we want to keep the original mbuf around
      when calling iwm_mvm_rx_rx_mpdu() to make error handling a bit easier
      for now.
    
    * Contains a small optimization to avoid the m_copym() when only a single
      80211 frame is received in one RX buffer (i.e. matching the existing
      behaviour).
    
    Taken-From and Inspired-By: Linux iwlwifi

Summary of changes:
 sys/dev/netif/iwm/if_iwm.c    | 182 +++++++++++++++++++++++++++++-------------
 sys/dev/netif/iwm/if_iwmreg.h |  13 +--
 sys/dev/netif/iwm/if_iwmvar.h |   1 -
 3 files changed, 132 insertions(+), 64 deletions(-)

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


-- 
DragonFly BSD source repository


More information about the Commits mailing list