xref: /freebsd/sys/netgraph/bluetooth/l2cap/TODO (revision 78d146160dc5339c9cdf7799551bcc442a6eb95b)
1f2bb1caeSJulian Elischer$Id: TODO,v 1.1 2002/11/24 19:47:06 max Exp $
2878ed226SJulian Elischer
3878ed226SJulian ElischerFIXME/TODO list
4878ed226SJulian Elischer
5878ed226SJulian Elischer0) Ping itself. Should L2CAP layer loopback data?
6878ed226SJulian Elischer
7878ed226SJulian Elischer1) Locking/SMP
8878ed226SJulian Elischer
9878ed226SJulian Elischer	External code now uses ng_send_fn to inject data into Netgraph, so
10878ed226SJulian Elischer	it should be fine as long as Netgraph is SMP safe. Just need to
11878ed226SJulian Elischer	verify it.
12878ed226SJulian Elischer
13878ed226SJulian Elischer2) Understand and implement L2CAP QoS
14878ed226SJulian Elischer
15878ed226SJulian Elischer	Will fix later. I only have CSR based hardware and it does not
16878ed226SJulian Elischer	support QoS.
17878ed226SJulian Elischer
18878ed226SJulian Elischer3) Better functions to manage CIDs and command ident's.
19878ed226SJulian Elischer
20878ed226SJulian Elischer	Resource manager is not good because it uses MTX_DEF mutexes,
21878ed226SJulian Elischer	(i.e. could block/sleep)
22878ed226SJulian Elischer
23878ed226SJulian Elischer4) Implement group channels (multicast)
24878ed226SJulian Elischer
25878ed226SJulian Elischer	Will fix later
26878ed226SJulian Elischer
27878ed226SJulian Elischer5) Add bytes/packets counters and commands to get/reset them
28878ed226SJulian Elischer
29878ed226SJulian Elischer	Will fix later. What to count?
30878ed226SJulian Elischer
31878ed226SJulian Elischer6) Better way to get information about channels
32878ed226SJulian Elischer
33878ed226SJulian Elischer	L2CAP can support about 65000 channels. Need define some good way
34878ed226SJulian Elischer	to get data from kernel to user space. For example if we need to pass
35878ed226SJulian Elischer	1K of information for every channel, then worst case is that we need
36878ed226SJulian Elischer	to pass 65Mbytes of data from kernel to user space. Not good.
37878ed226SJulian Elischer
38878ed226SJulian Elischer7) Deal properly with "shutdown"s and hook "disconnect"s
39878ed226SJulian Elischer
40878ed226SJulian Elischer	For now we destroy all channels when upstream hook is disconnected.
41878ed226SJulian Elischer	Is there a better way to handle this?
42878ed226SJulian Elischer
43