mac80211: Start implementing QoS support for mesh interfaces
In order to support QoS in mesh, we need to assign queue mapping only after the next hop has been resolved, both for forwarded and locally originated frames. Also, now that this is fixed, remove the XXX comment in ieee80211_select_queue(). Also, V-Shy Ho reported that the queue mapping was not being applied to the forwarded frame (fwd_skb instead of skb). Fixed that as well. Signed-off-by: Javier Cardona <javier@cozybit.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
3de3d96600
commit
4777be4163
@@ -1905,13 +1905,13 @@ ieee80211_rx_h_mesh_fwding(struct ieee80211_rx_data *rx)
|
||||
memset(info, 0, sizeof(*info));
|
||||
info->flags |= IEEE80211_TX_INTFL_NEED_TXPROCESSING;
|
||||
info->control.vif = &rx->sdata->vif;
|
||||
skb_set_queue_mapping(skb,
|
||||
ieee80211_select_queue(rx->sdata, fwd_skb));
|
||||
ieee80211_set_qos_hdr(local, skb);
|
||||
if (is_multicast_ether_addr(fwd_hdr->addr1))
|
||||
if (is_multicast_ether_addr(fwd_hdr->addr1)) {
|
||||
IEEE80211_IFSTA_MESH_CTR_INC(&sdata->u.mesh,
|
||||
fwded_mcast);
|
||||
else {
|
||||
skb_set_queue_mapping(fwd_skb,
|
||||
ieee80211_select_queue(sdata, fwd_skb));
|
||||
ieee80211_set_qos_hdr(local, fwd_skb);
|
||||
} else {
|
||||
int err;
|
||||
/*
|
||||
* Save TA to addr1 to send TA a path error if a
|
||||
|
Reference in New Issue
Block a user