• Yogesh Ashok Powar's avatar
    mwl8k: Reducing extra_tx_headroom for tx optimization in AP mode · ff776cec
    Yogesh Ashok Powar authored
    The tx_headroom required for mwl8k driver is 32 bytes and it
    can use the space for 802.11 header received from mac80211.
    mwl8k considers the smallest 802.11 frame (CTS2self of 10
    bytes) that can be received from mac80211  to compute the
    extra_tx_headroom as 22 (32 - 10) bytes.
    
    When the wireless interface is part of bridge, this
    extra_tx_headroom requirement results in a memcpy in
    mac80211 (in function pskb_expand_head) for all the data
    frames needing L2 forwarding/bridging, when NET_SKB_PAD is
    defined as 32. This patch reduces the extra_tx_headroom by
    8 bytes so that memcpy of data frames in mac80211 is
    avoided in this case.
    
    The resize will be required in driver for frames with 802.11
    header size of less than 18 bytes.
    Signed-off-by: default avatarYogesh Ashok Powar <yogeshp@marvell.com>
    Signed-off-by: default avatarPradeep Nemavat <pnemavat@marvell.com>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    ff776cec
mwl8k.c 138 KB