summaryrefslogtreecommitdiff
path: root/lib/bch.c
diff options
context:
space:
mode:
authorsjur.brandeland@stericsson.com <sjur.brandeland@stericsson.com>2011-12-04 15:22:54 +0400
committerDavid S. Miller <davem@davemloft.net>2011-12-06 03:27:56 +0400
commit0e4c7d85d5e522d5839bdc5745235428faf38d44 (patch)
tree99506bac6e5cbefffc2358a5c85c76950b265efe /lib/bch.c
parent7ad65bf68d705b445ef10b77ab50dab22be185ee (diff)
downloadlinux-0e4c7d85d5e522d5839bdc5745235428faf38d44.tar.xz
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 <sjur.brandeland@stericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/bch.c')
0 files changed, 0 insertions, 0 deletions