Thread (12 messages) 12 messages, 2 authors, 2017-09-05

Re: [PATCH 3/3] mac80211: fix VLAN handling with TXQs

From: Johannes Berg <johannes@sipsolutions.net>
Date: 2017-09-05 09:18:47

On Tue, 2017-09-05 at 11:02 +0200, Toke Høiland-Jørgensen wrote:
quoted
I'm not sure. However, I think it's less bad than one might guess
since it really should only affect multicast frames, right? All
unicast frames should go directly to the per-STA TXQ.
Ah, right, that is the interface txq that is being purged. Gotcha.

But, erm, what happens with unicast traffic sent on the VLAN
interface when it goes down? Shouldn't that be purged from the per-
station TXQs as well?
Well, those entire TXQs are destroyed with the station :)
One nit with the patch:
quoted
-	tx.sdata = vif_to_sdata(info->control.vif);
+	if (info->control.vif)
+		tx.sdata = vif_to_sdata(info->control.vif);
Why the conditional assignment? The code below unconditionally
dereferences tx.sdata, so if info->control.vif is null it is going to
crash anyway?
Yeah, I agree that makes no sense, I'll remove that piece again.

johannes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help