aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Aring <aar@pengutronix.de>2016-04-11 05:04:19 -0400
committerMarcel Holtmann <marcel@holtmann.org>2016-04-13 04:41:09 -0400
commit353c224e28eb73e65720e5b2be224052569c0764 (patch)
tree1a558aabcd2e7d2982bf5c1856b85e75fbdcd07b
parent2e4d60cbcfc2d16a2a2efaae3fe08f2e457d59a1 (diff)
6lowpan: move lowpan_802154_dev to 6lowpan
This patch moves the 802.15.4 link layer specific structures to generic 6lowpan. This is necessary for special 802.15.4 6lowpan handling in 6lowpan generic layer. Reviewed-by: Stefan Schmidt <stefan@osg.samsung.com> Signed-off-by: Alexander Aring <aar@pengutronix.de> Acked-by: Jukka Rissanen <jukka.rissanen@linux.intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
-rw-r--r--include/net/6lowpan.h12
-rw-r--r--net/ieee802154/6lowpan/6lowpan_i.h12
2 files changed, 12 insertions, 12 deletions
diff --git a/include/net/6lowpan.h b/include/net/6lowpan.h
index f204664f37ab..a0c01f55e0d3 100644
--- a/include/net/6lowpan.h
+++ b/include/net/6lowpan.h
@@ -144,6 +144,18 @@ struct lowpan_dev *lowpan_dev(const struct net_device *dev)
144 return netdev_priv(dev); 144 return netdev_priv(dev);
145} 145}
146 146
147/* private device info */
148struct lowpan_802154_dev {
149 struct net_device *wdev; /* wpan device ptr */
150 u16 fragment_tag;
151};
152
153static inline struct
154lowpan_802154_dev *lowpan_802154_dev(const struct net_device *dev)
155{
156 return (struct lowpan_802154_dev *)lowpan_dev(dev)->priv;
157}
158
147struct lowpan_802154_cb { 159struct lowpan_802154_cb {
148 u16 d_tag; 160 u16 d_tag;
149 unsigned int d_size; 161 unsigned int d_size;
diff --git a/net/ieee802154/6lowpan/6lowpan_i.h b/net/ieee802154/6lowpan/6lowpan_i.h
index b02b74de8ffa..5ac778962e4e 100644
--- a/net/ieee802154/6lowpan/6lowpan_i.h
+++ b/net/ieee802154/6lowpan/6lowpan_i.h
@@ -47,18 +47,6 @@ static inline u32 ieee802154_addr_hash(const struct ieee802154_addr *a)
47 } 47 }
48} 48}
49 49
50/* private device info */
51struct lowpan_802154_dev {
52 struct net_device *wdev; /* wpan device ptr */
53 u16 fragment_tag;
54};
55
56static inline struct
57lowpan_802154_dev *lowpan_802154_dev(const struct net_device *dev)
58{
59 return (struct lowpan_802154_dev *)lowpan_dev(dev)->priv;
60}
61
62int lowpan_frag_rcv(struct sk_buff *skb, const u8 frag_type); 50int lowpan_frag_rcv(struct sk_buff *skb, const u8 frag_type);
63void lowpan_net_frag_exit(void); 51void lowpan_net_frag_exit(void);
64int lowpan_net_frag_init(void); 52int lowpan_net_frag_init(void);