From: sjur.brandeland@stericsson.com Date: Sun, 4 Dec 2011 11:22:54 +0000 (+0000) Subject: caif: Add support for flow-control on device's tx-queue X-Git-Tag: v3.3-rc1~182^2~346 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e4c7d85d5e522d5839bdc5745235428faf38d44;p=pandora-kernel.git caif: Add support for flow-control on device's tx-queue Flow control is implemented by inspecting the qdisc queue length in order to detect potential overflow on the TX queue. When a threshold is reached flow-off is sent upwards in the CAIF stack. At the same time the skb->destructor is hi-jacked by orphaning the SKB and the original destructor is replaced with a "flow-on" callback. When the "hi-jacked" SKB is consumed the queue should be empty, and the "flow-on" callback is called and xon is sent upwards in the CAIF stack. Signed-off-by: Sjur Brændeland Signed-off-by: David S. Miller --- Reading git-diff-tree failed