summaryrefslogtreecommitdiff
path: root/net/netrom
diff options
context:
space:
mode:
authorMat Martineau <mathewm@codeaurora.org>2011-07-07 20:39:02 +0400
committerGustavo F. Padovan <padovan@profusion.mobi>2011-07-07 22:28:56 +0400
commite328140fdacbba43292a59a22fb55d9185288318 (patch)
tree43eb760529846562e6e75c25cd39a8317142eac7 /net/netrom
parent26f880d221302b5d061185d8a6795bb532693bf3 (diff)
downloadlinux-e328140fdacbba43292a59a22fb55d9185288318.tar.xz
Bluetooth: Use event-driven approach for handling ERTM receive buffer
This change moves most L2CAP ERTM receive buffer handling out of the L2CAP core and in to the socket code. It's up to the higher layer (the socket code, in this case) to tell the core when its buffer is full or has space available. The recv op should always accept incoming ERTM data or else the connection will go down. Within the socket layer, an skb that does not fit in the socket receive buffer will be temporarily stored. When the socket is read from, that skb will be placed in the receive buffer if possible. Once adequate buffer space becomes available, the L2CAP core is informed and the ERTM local busy state is cleared. Receive buffer management for non-ERTM modes is unchanged. Signed-off-by: Mat Martineau <mathewm@codeaurora.org> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/netrom')
0 files changed, 0 insertions, 0 deletions