• Johannes Berg's avatar
    mac80211: move netdev queue enabling to correct spot · 7236fe29
    Johannes Berg authored
    "mac80211: fix skb buffering issue" still left a race
    between enabling the hardware queues and the virtual
    interface queues. In hindsight it's totally obvious
    that enabling the netdev queues for a hardware queue
    when the hardware queue is enabled is wrong, because
    it could well possible that we can fill the hw queue
    with packets we already have pending. Thus, we must
    only enable the netdev queues once all the pending
    packets have been processed and sent off to the device.
    In testing, I haven't been able to trigger this race
    condition, but it's clearly there, possibly only when
    aggregation is being enabled.
    Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
    Cc: stable@kernel.org
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
util.c 34.3 KB