All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v8 0/5] Bluetooth LE 6LoWPAN using CoC
@ 2014-06-18 13:37 Jukka Rissanen
  2014-06-18 13:37 ` [PATCH v8 1/5] Bluetooth: Provide L2CAP ops callback for memcpy_fromiovec Jukka Rissanen
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Jukka Rissanen @ 2014-06-18 13:37 UTC (permalink / raw)
  To: linux-bluetooth

Hi,

v8:
- forgot to commit one change to patch 2 so this version now
  contains kvec fixes (using kvec instead of iovec). Sorry for the spam.

v7:
- patch 1 is originally from Marcel but with slight modifications
  that avoid the sparse error by using kvec instead of iovec in
  kernel's memcpy path. I tested this with 6lowpan and also using
  L2CAP user sockets.
- avoid chan_ops forward declaration
- this version did not change the GFP_ATOMIC in alloc_skb cb as it
  is needed because the alloc function is called in atomic context
- also no need to ref skb because the caller will wait until we
  are finished
- various chan ref issues fixed

v6:
- rebased on top of Marcel's "Bluetooth: Provide L2CAP ops callback
  for memcpy_fromiovec" patch
- re-wrote the debugfs psm value handler using DEFINE_SIMPLE_ATTRIBUTE
- renamed and refactored the module init/exit functions, also checked
  that debugfs_remove() will gracefully accept NULL values
- added comment to disconnect_devices() why we have two separate
  lists

v5:
- memory buffer made const in patch 1
- misc changes and refactoring in patch 2

v4:
- renamed l2cap_from_skbuf() to more logical l2cap_copy_into_skbuff()
  in l2cap_core.c (patch 1)
- fixed the module usage count code in patch 4

Usage:

In the slave side do this:

$ modprobe bluetooth_6lowpan
$ echo 62 > /sys/kernel/debug/bluetooth/6lowpan_psm
$ hciconfig hci0 leadv

In the master side do this:

$ modprobe bluetooth_6lowpan
$ echo 62 > /sys/kernel/debug/bluetooth/6lowpan_psm
$ echo 'connect E0:06:E6:B7:2A:73 1' > \
                  /sys/kernel/debug/bluetooth/6lowpan_control


Cheers,
Jukka


Jukka Rissanen (5):
  Bluetooth: Provide L2CAP ops callback for memcpy_fromiovec
  Bluetooth: 6LoWPAN: Use connected oriented channel instead of fixed
    one
  Bluetooth: 6LoWPAN: Create a kernel module
  Bluetooth: 6LoWPAN: Count module usage
  Bluetooth: 6LoWPAN: Remove network devices when unloading

 include/net/bluetooth/hci.h      |   1 -
 include/net/bluetooth/hci_core.h |   1 -
 include/net/bluetooth/l2cap.h    |  30 +-
 net/bluetooth/6lowpan.c          | 857 +++++++++++++++++++++++++++++----------
 net/bluetooth/6lowpan.h          |  47 ---
 net/bluetooth/Kconfig            |   6 +-
 net/bluetooth/Makefile           |   4 +-
 net/bluetooth/a2mp.c             |   1 +
 net/bluetooth/hci_core.c         |  45 --
 net/bluetooth/hci_event.c        |   3 -
 net/bluetooth/l2cap_core.c       |  26 +-
 net/bluetooth/l2cap_sock.c       |  34 +-
 12 files changed, 718 insertions(+), 337 deletions(-)
 delete mode 100644 net/bluetooth/6lowpan.h

-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-06-23 10:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-18 13:37 [PATCH v8 0/5] Bluetooth LE 6LoWPAN using CoC Jukka Rissanen
2014-06-18 13:37 ` [PATCH v8 1/5] Bluetooth: Provide L2CAP ops callback for memcpy_fromiovec Jukka Rissanen
2014-06-18 13:37 ` [PATCH v8 2/5] Bluetooth: 6LoWPAN: Use connected oriented channel instead of fixed one Jukka Rissanen
2014-06-18 13:37 ` [PATCH v8 3/5] Bluetooth: 6LoWPAN: Create a kernel module Jukka Rissanen
2014-06-18 13:37 ` [PATCH v8 4/5] Bluetooth: 6LoWPAN: Count module usage Jukka Rissanen
2014-06-18 13:37 ` [PATCH v8 5/5] Bluetooth: 6LoWPAN: Remove network devices when unloading Jukka Rissanen
2014-06-23 10:16 ` [PATCH v8 0/5] Bluetooth LE 6LoWPAN using CoC Marcel Holtmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.