• Florian Westphal's avatar
    ar5523: use container_of · 6faf22d9
    Florian Westphal authored
    If we want to shrink skb->cb then we'd have to see about
    reducing struct ieee80211_tx_info, which gets embedded inside
    skb->cb[].
    
    It provides a scratch space to be used by wireless drivers.
    ar5523 uses the maximum space available today (40 bytes), but it seems
    we don't need this -- data->skb pointer seems to always point back to the
    skb whose cb buffer the data structure resides, iow, given a pointer to the
    embedded control buffer we can infer the skb address.
    Tested-by: default avatarPontus Fuchs <pontus.fuchs@gmail.com>
    Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
    Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
    6faf22d9
ar5523.c 46.7 KB