* [PATCH bluetooth-next 0/5] ieee802154: structural directory changes
@ 2014-12-20 14:04 Alexander Aring
2014-12-20 14:04 ` [PATCH bluetooth-next 1/5] ieee802154: create af802154 sub-directory Alexander Aring
` (5 more replies)
0 siblings, 6 replies; 8+ messages in thread
From: Alexander Aring @ 2014-12-20 14:04 UTC (permalink / raw)
To: linux-wpan; +Cc: kernel, Alexander Aring
This patch series contains structural changes according the ieee802154
directory. The current situation is that this directory contains stuff
about ieee802154 6lowpan, ieee802154 address family and netlink interface.
This patch series introduce now sub directories for 6lowpan and af802154
implementation to getting a better overview about these implementations.
The ieee802154 directory contains stuff for nl802154, netlink and sysfs
only.
Alexander Aring (5):
ieee802154: create af802154 sub-directory
ieee802154: af802154: rename internal header
ieee802154: af802154: rename af_ieee802154 to core
ieee802154: create 6lowpan sub-directory
ieee802154: 6lowpan: rename internal header
net/ieee802154/{reassembly.h => 6lowpan/6lowpan_i.h} | 6 +++---
net/ieee802154/{ => 6lowpan}/6lowpan_rtnl.c | 2 +-
net/ieee802154/6lowpan/Makefile | 3 +++
net/ieee802154/{ => 6lowpan}/reassembly.c | 2 +-
net/ieee802154/Makefile | 6 ++----
net/ieee802154/af802154/Makefile | 3 +++
net/ieee802154/{af802154.h => af802154/af802154_i.h} | 6 +++---
net/ieee802154/{af_ieee802154.c => af802154/core.c} | 2 +-
net/ieee802154/{ => af802154}/dgram.c | 2 +-
net/ieee802154/{ => af802154}/raw.c | 2 +-
10 files changed, 19 insertions(+), 15 deletions(-)
rename net/ieee802154/{reassembly.h => 6lowpan/6lowpan_i.h} (85%)
rename net/ieee802154/{ => 6lowpan}/6lowpan_rtnl.c (99%)
create mode 100644 net/ieee802154/6lowpan/Makefile
rename net/ieee802154/{ => 6lowpan}/reassembly.c (99%)
create mode 100644 net/ieee802154/af802154/Makefile
rename net/ieee802154/{af802154.h => af802154/af802154_i.h} (93%)
rename net/ieee802154/{af_ieee802154.c => af802154/core.c} (99%)
rename net/ieee802154/{ => af802154}/dgram.c (99%)
rename net/ieee802154/{ => af802154}/raw.c (99%)
--
2.2.0
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH bluetooth-next 1/5] ieee802154: create af802154 sub-directory
2014-12-20 14:04 [PATCH bluetooth-next 0/5] ieee802154: structural directory changes Alexander Aring
@ 2014-12-20 14:04 ` Alexander Aring
2014-12-20 14:04 ` [PATCH bluetooth-next 2/5] ieee802154: af802154: rename internal header Alexander Aring
` (4 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: Alexander Aring @ 2014-12-20 14:04 UTC (permalink / raw)
To: linux-wpan; +Cc: kernel, Alexander Aring
This patch creates an af802154 sub-directory inside ieee802154.
Additional we move all af802154 relevant files into this sub-directory
instead of placeing the address family files inside ieee802154.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
---
net/ieee802154/Makefile | 3 +--
net/ieee802154/af802154/Makefile | 3 +++
net/ieee802154/{ => af802154}/af802154.h | 0
net/ieee802154/{ => af802154}/af_ieee802154.c | 0
net/ieee802154/{ => af802154}/dgram.c | 0
net/ieee802154/{ => af802154}/raw.c | 0
6 files changed, 4 insertions(+), 2 deletions(-)
create mode 100644 net/ieee802154/af802154/Makefile
rename net/ieee802154/{ => af802154}/af802154.h (100%)
rename net/ieee802154/{ => af802154}/af_ieee802154.c (100%)
rename net/ieee802154/{ => af802154}/dgram.c (100%)
rename net/ieee802154/{ => af802154}/raw.c (100%)
diff --git a/net/ieee802154/Makefile b/net/ieee802154/Makefile
index 9f6970f..9f88d1b 100644
--- a/net/ieee802154/Makefile
+++ b/net/ieee802154/Makefile
@@ -1,9 +1,8 @@
-obj-$(CONFIG_IEEE802154) += ieee802154.o af_802154.o
+obj-$(CONFIG_IEEE802154) += ieee802154.o af802154/
obj-$(CONFIG_IEEE802154_6LOWPAN) += ieee802154_6lowpan.o
ieee802154_6lowpan-y := 6lowpan_rtnl.o reassembly.o
ieee802154-y := netlink.o nl-mac.o nl-phy.o nl_policy.o core.o \
header_ops.o sysfs.o nl802154.o
-af_802154-y := af_ieee802154.o raw.o dgram.o
ccflags-y += -D__CHECK_ENDIAN__
diff --git a/net/ieee802154/af802154/Makefile b/net/ieee802154/af802154/Makefile
new file mode 100644
index 0000000..f039520
--- /dev/null
+++ b/net/ieee802154/af802154/Makefile
@@ -0,0 +1,3 @@
+obj-y += af_802154.o
+
+af_802154-y := af_ieee802154.o raw.o dgram.o
diff --git a/net/ieee802154/af802154.h b/net/ieee802154/af802154/af802154.h
similarity index 100%
rename from net/ieee802154/af802154.h
rename to net/ieee802154/af802154/af802154.h
diff --git a/net/ieee802154/af_ieee802154.c b/net/ieee802154/af802154/af_ieee802154.c
similarity index 100%
rename from net/ieee802154/af_ieee802154.c
rename to net/ieee802154/af802154/af_ieee802154.c
diff --git a/net/ieee802154/dgram.c b/net/ieee802154/af802154/dgram.c
similarity index 100%
rename from net/ieee802154/dgram.c
rename to net/ieee802154/af802154/dgram.c
diff --git a/net/ieee802154/raw.c b/net/ieee802154/af802154/raw.c
similarity index 100%
rename from net/ieee802154/raw.c
rename to net/ieee802154/af802154/raw.c
--
2.2.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH bluetooth-next 2/5] ieee802154: af802154: rename internal header
2014-12-20 14:04 [PATCH bluetooth-next 0/5] ieee802154: structural directory changes Alexander Aring
2014-12-20 14:04 ` [PATCH bluetooth-next 1/5] ieee802154: create af802154 sub-directory Alexander Aring
@ 2014-12-20 14:04 ` Alexander Aring
2014-12-20 14:04 ` [PATCH bluetooth-next 3/5] ieee802154: af802154: rename af_ieee802154 to core Alexander Aring
` (3 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: Alexander Aring @ 2014-12-20 14:04 UTC (permalink / raw)
To: linux-wpan; +Cc: kernel, Alexander Aring
This patch renames the internal header for af802154. This naming
convention is like ieee802154_i.h in mac802154 and avoids naming
confusing with the global af802154 header.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
---
net/ieee802154/af802154/{af802154.h => af802154_i.h} | 6 +++---
net/ieee802154/af802154/af_ieee802154.c | 2 +-
net/ieee802154/af802154/dgram.c | 2 +-
net/ieee802154/af802154/raw.c | 2 +-
4 files changed, 6 insertions(+), 6 deletions(-)
rename net/ieee802154/af802154/{af802154.h => af802154_i.h} (93%)
diff --git a/net/ieee802154/af802154/af802154.h b/net/ieee802154/af802154/af802154_i.h
similarity index 93%
rename from net/ieee802154/af802154/af802154.h
rename to net/ieee802154/af802154/af802154_i.h
index 343b63e..e5c7bb5 100644
--- a/net/ieee802154/af802154/af802154.h
+++ b/net/ieee802154/af802154/af802154_i.h
@@ -17,8 +17,8 @@
* Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
*/
-#ifndef AF802154_H
-#define AF802154_H
+#ifndef AF802154_I_H
+#define AF802154_I_H
struct sk_buff;
struct net_device;
@@ -30,4 +30,4 @@ int ieee802154_dgram_deliver(struct net_device *dev, struct sk_buff *skb);
struct net_device *ieee802154_get_dev(struct net *net,
const struct ieee802154_addr *addr);
-#endif
+#endif /* AF802154_I_H */
diff --git a/net/ieee802154/af802154/af_ieee802154.c b/net/ieee802154/af802154/af_ieee802154.c
index d0a1282..41a7bcf 100644
--- a/net/ieee802154/af802154/af_ieee802154.c
+++ b/net/ieee802154/af802154/af_ieee802154.c
@@ -34,7 +34,7 @@
#include <net/af_ieee802154.h>
#include <net/ieee802154_netdev.h>
-#include "af802154.h"
+#include "af802154_i.h"
/* Utility function for families */
struct net_device*
diff --git a/net/ieee802154/af802154/dgram.c b/net/ieee802154/af802154/dgram.c
index d1930b7..3a8487b 100644
--- a/net/ieee802154/af802154/dgram.c
+++ b/net/ieee802154/af802154/dgram.c
@@ -30,7 +30,7 @@
#include <asm/ioctls.h>
-#include "af802154.h"
+#include "af802154_i.h"
static HLIST_HEAD(dgram_head);
static DEFINE_RWLOCK(dgram_lock);
diff --git a/net/ieee802154/af802154/raw.c b/net/ieee802154/af802154/raw.c
index 1674b115..0315f76 100644
--- a/net/ieee802154/af802154/raw.c
+++ b/net/ieee802154/af802154/raw.c
@@ -26,7 +26,7 @@
#include <net/af_ieee802154.h>
#include <net/ieee802154_netdev.h>
-#include "af802154.h"
+#include "af802154_i.h"
static HLIST_HEAD(raw_head);
static DEFINE_RWLOCK(raw_lock);
--
2.2.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH bluetooth-next 3/5] ieee802154: af802154: rename af_ieee802154 to core
2014-12-20 14:04 [PATCH bluetooth-next 0/5] ieee802154: structural directory changes Alexander Aring
2014-12-20 14:04 ` [PATCH bluetooth-next 1/5] ieee802154: create af802154 sub-directory Alexander Aring
2014-12-20 14:04 ` [PATCH bluetooth-next 2/5] ieee802154: af802154: rename internal header Alexander Aring
@ 2014-12-20 14:04 ` Alexander Aring
2014-12-20 14:04 ` [PATCH bluetooth-next 4/5] ieee802154: create 6lowpan sub-directory Alexander Aring
` (2 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: Alexander Aring @ 2014-12-20 14:04 UTC (permalink / raw)
To: linux-wpan; +Cc: kernel, Alexander Aring
This patch renames the af_ieee802154 file to core. This file contains
some core af802154 functionality which is used by raw and dgram socket
implementation.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
---
net/ieee802154/af802154/Makefile | 2 +-
net/ieee802154/af802154/{af_ieee802154.c => core.c} | 0
2 files changed, 1 insertion(+), 1 deletion(-)
rename net/ieee802154/af802154/{af_ieee802154.c => core.c} (100%)
diff --git a/net/ieee802154/af802154/Makefile b/net/ieee802154/af802154/Makefile
index f039520..d37fd88 100644
--- a/net/ieee802154/af802154/Makefile
+++ b/net/ieee802154/af802154/Makefile
@@ -1,3 +1,3 @@
obj-y += af_802154.o
-af_802154-y := af_ieee802154.o raw.o dgram.o
+af_802154-y := core.o raw.o dgram.o
diff --git a/net/ieee802154/af802154/af_ieee802154.c b/net/ieee802154/af802154/core.c
similarity index 100%
rename from net/ieee802154/af802154/af_ieee802154.c
rename to net/ieee802154/af802154/core.c
--
2.2.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH bluetooth-next 4/5] ieee802154: create 6lowpan sub-directory
2014-12-20 14:04 [PATCH bluetooth-next 0/5] ieee802154: structural directory changes Alexander Aring
` (2 preceding siblings ...)
2014-12-20 14:04 ` [PATCH bluetooth-next 3/5] ieee802154: af802154: rename af_ieee802154 to core Alexander Aring
@ 2014-12-20 14:04 ` Alexander Aring
2014-12-20 14:05 ` [PATCH bluetooth-next 5/5] ieee802154: 6lowpan: rename internal header Alexander Aring
2014-12-30 6:18 ` [PATCH bluetooth-next 0/5] ieee802154: structural directory changes Marcel Holtmann
5 siblings, 0 replies; 8+ messages in thread
From: Alexander Aring @ 2014-12-20 14:04 UTC (permalink / raw)
To: linux-wpan; +Cc: kernel, Alexander Aring
This patch creates an 6lowpan sub-directory inside ieee802154.
Additional we move all ieee802154 6lowpan relevant files into
this sub-directory instead of placeing the 6lowpan related files
inside ieee802154.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
---
net/ieee802154/{ => 6lowpan}/6lowpan_rtnl.c | 0
net/ieee802154/6lowpan/Makefile | 3 +++
net/ieee802154/{ => 6lowpan}/reassembly.c | 0
net/ieee802154/{ => 6lowpan}/reassembly.h | 0
net/ieee802154/Makefile | 3 +--
5 files changed, 4 insertions(+), 2 deletions(-)
rename net/ieee802154/{ => 6lowpan}/6lowpan_rtnl.c (100%)
create mode 100644 net/ieee802154/6lowpan/Makefile
rename net/ieee802154/{ => 6lowpan}/reassembly.c (100%)
rename net/ieee802154/{ => 6lowpan}/reassembly.h (100%)
diff --git a/net/ieee802154/6lowpan_rtnl.c b/net/ieee802154/6lowpan/6lowpan_rtnl.c
similarity index 100%
rename from net/ieee802154/6lowpan_rtnl.c
rename to net/ieee802154/6lowpan/6lowpan_rtnl.c
diff --git a/net/ieee802154/6lowpan/Makefile b/net/ieee802154/6lowpan/Makefile
new file mode 100644
index 0000000..936959b
--- /dev/null
+++ b/net/ieee802154/6lowpan/Makefile
@@ -0,0 +1,3 @@
+obj-y += ieee802154_6lowpan.o
+
+ieee802154_6lowpan-y := 6lowpan_rtnl.o reassembly.o
diff --git a/net/ieee802154/reassembly.c b/net/ieee802154/6lowpan/reassembly.c
similarity index 100%
rename from net/ieee802154/reassembly.c
rename to net/ieee802154/6lowpan/reassembly.c
diff --git a/net/ieee802154/reassembly.h b/net/ieee802154/6lowpan/reassembly.h
similarity index 100%
rename from net/ieee802154/reassembly.h
rename to net/ieee802154/6lowpan/reassembly.h
diff --git a/net/ieee802154/Makefile b/net/ieee802154/Makefile
index 9f88d1b..5af3d7e 100644
--- a/net/ieee802154/Makefile
+++ b/net/ieee802154/Makefile
@@ -1,7 +1,6 @@
obj-$(CONFIG_IEEE802154) += ieee802154.o af802154/
-obj-$(CONFIG_IEEE802154_6LOWPAN) += ieee802154_6lowpan.o
+obj-$(CONFIG_IEEE802154_6LOWPAN) += 6lowpan/
-ieee802154_6lowpan-y := 6lowpan_rtnl.o reassembly.o
ieee802154-y := netlink.o nl-mac.o nl-phy.o nl_policy.o core.o \
header_ops.o sysfs.o nl802154.o
--
2.2.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH bluetooth-next 5/5] ieee802154: 6lowpan: rename internal header
2014-12-20 14:04 [PATCH bluetooth-next 0/5] ieee802154: structural directory changes Alexander Aring
` (3 preceding siblings ...)
2014-12-20 14:04 ` [PATCH bluetooth-next 4/5] ieee802154: create 6lowpan sub-directory Alexander Aring
@ 2014-12-20 14:05 ` Alexander Aring
2014-12-30 6:18 ` [PATCH bluetooth-next 0/5] ieee802154: structural directory changes Marcel Holtmann
5 siblings, 0 replies; 8+ messages in thread
From: Alexander Aring @ 2014-12-20 14:05 UTC (permalink / raw)
To: linux-wpan; +Cc: kernel, Alexander Aring
This patch renames the internal header for af802154. This naming
convention is like ieee802154_i.h in mac802154 and avoids naming
confusing with the global af802154 header. Furthermore this header
contains more ieee802154 specific definitions.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
---
net/ieee802154/6lowpan/{reassembly.h => 6lowpan_i.h} | 6 +++---
net/ieee802154/6lowpan/6lowpan_rtnl.c | 2 +-
net/ieee802154/6lowpan/reassembly.c | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
rename net/ieee802154/6lowpan/{reassembly.h => 6lowpan_i.h} (85%)
diff --git a/net/ieee802154/6lowpan/reassembly.h b/net/ieee802154/6lowpan/6lowpan_i.h
similarity index 85%
rename from net/ieee802154/6lowpan/reassembly.h
rename to net/ieee802154/6lowpan/6lowpan_i.h
index 836b16f..edbe803 100644
--- a/net/ieee802154/6lowpan/reassembly.h
+++ b/net/ieee802154/6lowpan/6lowpan_i.h
@@ -1,5 +1,5 @@
-#ifndef __IEEE802154_6LOWPAN_REASSEMBLY_H__
-#define __IEEE802154_6LOWPAN_REASSEMBLY_H__
+#ifndef __IEEE802154_6LOWPAN_I_H__
+#define __IEEE802154_6LOWPAN_I_H__
#include <net/inet_frag.h>
@@ -38,4 +38,4 @@ int lowpan_frag_rcv(struct sk_buff *skb, const u8 frag_type);
void lowpan_net_frag_exit(void);
int lowpan_net_frag_init(void);
-#endif /* __IEEE802154_6LOWPAN_REASSEMBLY_H__ */
+#endif /* __IEEE802154_6LOWPAN_I_H__ */
diff --git a/net/ieee802154/6lowpan/6lowpan_rtnl.c b/net/ieee802154/6lowpan/6lowpan_rtnl.c
index 27eaa65..1918c43 100644
--- a/net/ieee802154/6lowpan/6lowpan_rtnl.c
+++ b/net/ieee802154/6lowpan/6lowpan_rtnl.c
@@ -55,7 +55,7 @@
#include <net/6lowpan.h>
#include <net/ipv6.h>
-#include "reassembly.h"
+#include "6lowpan_i.h"
static LIST_HEAD(lowpan_devices);
static int lowpan_open_count;
diff --git a/net/ieee802154/6lowpan/reassembly.c b/net/ieee802154/6lowpan/reassembly.c
index 9d980ed..f46e4d1 100644
--- a/net/ieee802154/6lowpan/reassembly.c
+++ b/net/ieee802154/6lowpan/reassembly.c
@@ -28,7 +28,7 @@
#include <net/ipv6.h>
#include <net/inet_frag.h>
-#include "reassembly.h"
+#include "6lowpan_i.h"
static const char lowpan_frags_cache_name[] = "lowpan-frags";
--
2.2.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH bluetooth-next 0/5] ieee802154: structural directory changes
2014-12-20 14:04 [PATCH bluetooth-next 0/5] ieee802154: structural directory changes Alexander Aring
` (4 preceding siblings ...)
2014-12-20 14:05 ` [PATCH bluetooth-next 5/5] ieee802154: 6lowpan: rename internal header Alexander Aring
@ 2014-12-30 6:18 ` Marcel Holtmann
2014-12-30 15:16 ` Alexander Aring
5 siblings, 1 reply; 8+ messages in thread
From: Marcel Holtmann @ 2014-12-30 6:18 UTC (permalink / raw)
To: Alexander Aring; +Cc: linux-wpan, kernel
Hi Alex,
> This patch series contains structural changes according the ieee802154
> directory. The current situation is that this directory contains stuff
> about ieee802154 6lowpan, ieee802154 address family and netlink interface.
> This patch series introduce now sub directories for 6lowpan and af802154
> implementation to getting a better overview about these implementations.
> The ieee802154 directory contains stuff for nl802154, netlink and sysfs
> only.
>
> Alexander Aring (5):
> ieee802154: create af802154 sub-directory
> ieee802154: af802154: rename internal header
> ieee802154: af802154: rename af_ieee802154 to core
> ieee802154: create 6lowpan sub-directory
> ieee802154: 6lowpan: rename internal header
>
> net/ieee802154/{reassembly.h => 6lowpan/6lowpan_i.h} | 6 +++---
> net/ieee802154/{ => 6lowpan}/6lowpan_rtnl.c | 2 +-
> net/ieee802154/6lowpan/Makefile | 3 +++
> net/ieee802154/{ => 6lowpan}/reassembly.c | 2 +-
> net/ieee802154/Makefile | 6 ++----
> net/ieee802154/af802154/Makefile | 3 +++
> net/ieee802154/{af802154.h => af802154/af802154_i.h} | 6 +++---
> net/ieee802154/{af_ieee802154.c => af802154/core.c} | 2 +-
> net/ieee802154/{ => af802154}/dgram.c | 2 +-
> net/ieee802154/{ => af802154}/raw.c | 2 +-
> 10 files changed, 19 insertions(+), 15 deletions(-)
> rename net/ieee802154/{reassembly.h => 6lowpan/6lowpan_i.h} (85%)
> rename net/ieee802154/{ => 6lowpan}/6lowpan_rtnl.c (99%)
> create mode 100644 net/ieee802154/6lowpan/Makefile
> rename net/ieee802154/{ => 6lowpan}/reassembly.c (99%)
> create mode 100644 net/ieee802154/af802154/Makefile
> rename net/ieee802154/{af802154.h => af802154/af802154_i.h} (93%)
> rename net/ieee802154/{af_ieee802154.c => af802154/core.c} (99%)
> rename net/ieee802154/{ => af802154}/dgram.c (99%)
> rename net/ieee802154/{ => af802154}/raw.c (99%)
the move of the 6lowpan stuff into net/ieee802154/6lowpan/ I can understand. That should be an optional piece. And I assume for 802.15.4 the 6LoWPAN support is more complex since it has to do segmentation and reassembly.
The net/ieee802154/af802154/ part seems pointless to me. What is this trying to achieve? I see that you can build af_802154.ko as a separate module. Which is something that I have not realized until now. So this is something that is intentional. So having ieee802154.ko and ieee802154_6lowpan.ko by itself without the socket is something that is functional?
If so, I find the naming of af_802154.ko and net/ieee802154/af802154/ rather complicated and convoluted. Would ieee802154_socket.ko net/ieee802154/socket/ not something more logical split in this regard?
Regards
Marcel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH bluetooth-next 0/5] ieee802154: structural directory changes
2014-12-30 6:18 ` [PATCH bluetooth-next 0/5] ieee802154: structural directory changes Marcel Holtmann
@ 2014-12-30 15:16 ` Alexander Aring
0 siblings, 0 replies; 8+ messages in thread
From: Alexander Aring @ 2014-12-30 15:16 UTC (permalink / raw)
To: Marcel Holtmann; +Cc: linux-wpan, kernel
Hi Marcel,
On Mon, Dec 29, 2014 at 10:18:32PM -0800, Marcel Holtmann wrote:
> Hi Alex,
>
> > This patch series contains structural changes according the ieee802154
> > directory. The current situation is that this directory contains stuff
> > about ieee802154 6lowpan, ieee802154 address family and netlink interface.
> > This patch series introduce now sub directories for 6lowpan and af802154
> > implementation to getting a better overview about these implementations.
> > The ieee802154 directory contains stuff for nl802154, netlink and sysfs
> > only.
> >
> > Alexander Aring (5):
> > ieee802154: create af802154 sub-directory
> > ieee802154: af802154: rename internal header
> > ieee802154: af802154: rename af_ieee802154 to core
> > ieee802154: create 6lowpan sub-directory
> > ieee802154: 6lowpan: rename internal header
> >
> > net/ieee802154/{reassembly.h => 6lowpan/6lowpan_i.h} | 6 +++---
> > net/ieee802154/{ => 6lowpan}/6lowpan_rtnl.c | 2 +-
> > net/ieee802154/6lowpan/Makefile | 3 +++
> > net/ieee802154/{ => 6lowpan}/reassembly.c | 2 +-
> > net/ieee802154/Makefile | 6 ++----
> > net/ieee802154/af802154/Makefile | 3 +++
> > net/ieee802154/{af802154.h => af802154/af802154_i.h} | 6 +++---
> > net/ieee802154/{af_ieee802154.c => af802154/core.c} | 2 +-
> > net/ieee802154/{ => af802154}/dgram.c | 2 +-
> > net/ieee802154/{ => af802154}/raw.c | 2 +-
> > 10 files changed, 19 insertions(+), 15 deletions(-)
> > rename net/ieee802154/{reassembly.h => 6lowpan/6lowpan_i.h} (85%)
> > rename net/ieee802154/{ => 6lowpan}/6lowpan_rtnl.c (99%)
> > create mode 100644 net/ieee802154/6lowpan/Makefile
> > rename net/ieee802154/{ => 6lowpan}/reassembly.c (99%)
> > create mode 100644 net/ieee802154/af802154/Makefile
> > rename net/ieee802154/{af802154.h => af802154/af802154_i.h} (93%)
> > rename net/ieee802154/{af_ieee802154.c => af802154/core.c} (99%)
> > rename net/ieee802154/{ => af802154}/dgram.c (99%)
> > rename net/ieee802154/{ => af802154}/raw.c (99%)
>
> the move of the 6lowpan stuff into net/ieee802154/6lowpan/ I can understand. That should be an optional piece. And I assume for 802.15.4 the 6LoWPAN support is more complex since it has to do segmentation and reassembly.
>
ok.
> The net/ieee802154/af802154/ part seems pointless to me. What is this trying to achieve? I see that you can build af_802154.ko as a separate module. Which is something that I have not realized until now. So this is something that is intentional. So having ieee802154.ko and ieee802154_6lowpan.ko by itself without the socket is something that is functional?
>
Yes, the address family functionality can be a separate module.
ieee802154_6lowpan.ko doesn't depends on the address family
functionality.
If only ieee802154.ko would built without address family and
ieee802154_6lowpan.ko then it might be used for receiving monitor mode.
I would change that but add a "default y" to the address family module.
> If so, I find the naming of af_802154.ko and net/ieee802154/af802154/ rather complicated and convoluted. Would ieee802154_socket.ko net/ieee802154/socket/ not something more logical split in this regard?
>
Don't know, I would keep the naming style to avoid confusing current
users. On the other hand, I think there are not many users outside and I
like the name socket. Many people knows sockets and doesn't know what a
(socket) "address family" is.
I will send a second version of this patch series according these changes.
- Alex
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2014-12-30 15:16 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-20 14:04 [PATCH bluetooth-next 0/5] ieee802154: structural directory changes Alexander Aring
2014-12-20 14:04 ` [PATCH bluetooth-next 1/5] ieee802154: create af802154 sub-directory Alexander Aring
2014-12-20 14:04 ` [PATCH bluetooth-next 2/5] ieee802154: af802154: rename internal header Alexander Aring
2014-12-20 14:04 ` [PATCH bluetooth-next 3/5] ieee802154: af802154: rename af_ieee802154 to core Alexander Aring
2014-12-20 14:04 ` [PATCH bluetooth-next 4/5] ieee802154: create 6lowpan sub-directory Alexander Aring
2014-12-20 14:05 ` [PATCH bluetooth-next 5/5] ieee802154: 6lowpan: rename internal header Alexander Aring
2014-12-30 6:18 ` [PATCH bluetooth-next 0/5] ieee802154: structural directory changes Marcel Holtmann
2014-12-30 15:16 ` Alexander Aring
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).