<br><br><div class="gmail_quote">On Thu, Jan 13, 2011 at 1:40 PM, Juliusz Chroboczek <span dir="ltr"><<a href="mailto:Juliusz.Chroboczek@pps.jussieu.fr">Juliusz.Chroboczek@pps.jussieu.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">> So far i haven't seen a hw queue filled, they are emptied really fast,<br>
> not even on multi-bssid scenarios,<br>
<br>
</div>Think a while about what that means.<br>
<br> What Nick is saying is that ath9k doesn't normally drop packets. </blockquote><div>hmm normally *G</div><div><br></div><div>imho a quick peek at the code looks like it usually drops, as soon as its queues are full,..</div>
<div>(and i asume it`s easy to fill them *G)<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hence,<br>
it must apply backpressure somewhere. If my understanding is correct,<br>
this happens in ath9k/xmit.c around line 1768.<br></blockquote><div>yep here we have ath_tx_start() which has useful return codes,..</div><div><br></div><div>but this function is not directly called by the "kernel" ...</div>
<div><br></div><div>it is called by ath9k_tx() @main.c:1323</div><div>which is the in ieee80211_ops.tx registered entry point for sending packets afaics,..</div><div><br></div><div>but there the return code of ath_tx_start is not passed back to the ath9k_tx callee</div>
<div><br></div><div><snip></div><div> if (ath_tx_start(hw, skb, &txctl) != 0) {<br> ath_print(common, ATH_DBG_XMIT, "TX failed\n");<br> goto exit;<br> }<br><br>
return 0;<br>exit:<br> dev_kfree_skb_any(skb);<br> return 0;<br>}<br></div><div></snip></div><div><br></div><div>imho the second return 0; looks wrong, as this way callees (probably mac80211) will assume the packet was sent succesfully,..</div>
<div><br></div><div>Markus</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<font color="#888888"><br>
Juliusz<br>
</font><div><div class="h5"><br>
--<br>
Olsr-users mailing list<br>
<a href="mailto:Olsr-users@lists.olsr.org">Olsr-users@lists.olsr.org</a><br>
<a href="http://lists.olsr.org/mailman/listinfo/olsr-users" target="_blank">http://lists.olsr.org/mailman/listinfo/olsr-users</a><br>
</div></div></blockquote></div><br>