• Luis R. Rodriguez's avatar
    ath9k: handle low buffer space for virtual wiphys · f52de03b
    Luis R. Rodriguez authored
    ath9k virtual wiphys all share the same internal buffer space
    for TX but they do not share the mac80211 skb queues. When
    ath9k detects it is running low on buffer space to TX it tells
    mac80211 to stop sending it skbs its way but it always does
    this only for the primary wiphy. This means mac80211 won't know
    its best to avoid sending ath9k more skbs on a separate virtual
    wiphy. The same issue is present for reliving the skb queue.
    
    Since ath9k does not keep track of which virtual wiphy is hammering
    on TX silence all wiphy's TX when we're low on buffer space. When
    we're free on buffer space only bother informing the virtual wiphy
    which is active that we have free buffers.
    
    Cc: Jouni.Malinen <Jouni.Malinen@atheros.com>
    Signed-off-by: default avatarLuis R. Rodriguez <lrodriguez@atheros.com>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    f52de03b
virtual.c 19.1 KB