diff options
author | Alexander Aring <aar@pengutronix.de> | 2016-04-11 05:04:19 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2016-04-13 04:41:09 -0400 |
commit | 353c224e28eb73e65720e5b2be224052569c0764 (patch) | |
tree | 1a558aabcd2e7d2982bf5c1856b85e75fbdcd07b | |
parent | 2e4d60cbcfc2d16a2a2efaae3fe08f2e457d59a1 (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.h | 12 | ||||
-rw-r--r-- | net/ieee802154/6lowpan/6lowpan_i.h | 12 |
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 */ | ||
148 | struct lowpan_802154_dev { | ||
149 | struct net_device *wdev; /* wpan device ptr */ | ||
150 | u16 fragment_tag; | ||
151 | }; | ||
152 | |||
153 | static inline struct | ||
154 | lowpan_802154_dev *lowpan_802154_dev(const struct net_device *dev) | ||
155 | { | ||
156 | return (struct lowpan_802154_dev *)lowpan_dev(dev)->priv; | ||
157 | } | ||
158 | |||
147 | struct lowpan_802154_cb { | 159 | struct 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 */ | ||
51 | struct lowpan_802154_dev { | ||
52 | struct net_device *wdev; /* wpan device ptr */ | ||
53 | u16 fragment_tag; | ||
54 | }; | ||
55 | |||
56 | static inline struct | ||
57 | lowpan_802154_dev *lowpan_802154_dev(const struct net_device *dev) | ||
58 | { | ||
59 | return (struct lowpan_802154_dev *)lowpan_dev(dev)->priv; | ||
60 | } | ||
61 | |||
62 | int lowpan_frag_rcv(struct sk_buff *skb, const u8 frag_type); | 50 | int lowpan_frag_rcv(struct sk_buff *skb, const u8 frag_type); |
63 | void lowpan_net_frag_exit(void); | 51 | void lowpan_net_frag_exit(void); |
64 | int lowpan_net_frag_init(void); | 52 | int lowpan_net_frag_init(void); |