mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
2e4d60cbcf
commit
353c224e28
|
@ -144,6 +144,18 @@ struct lowpan_dev *lowpan_dev(const struct net_device *dev)
|
||||||
return netdev_priv(dev);
|
return netdev_priv(dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* private device info */
|
||||||
|
struct lowpan_802154_dev {
|
||||||
|
struct net_device *wdev; /* wpan device ptr */
|
||||||
|
u16 fragment_tag;
|
||||||
|
};
|
||||||
|
|
||||||
|
static inline struct
|
||||||
|
lowpan_802154_dev *lowpan_802154_dev(const struct net_device *dev)
|
||||||
|
{
|
||||||
|
return (struct lowpan_802154_dev *)lowpan_dev(dev)->priv;
|
||||||
|
}
|
||||||
|
|
||||||
struct lowpan_802154_cb {
|
struct lowpan_802154_cb {
|
||||||
u16 d_tag;
|
u16 d_tag;
|
||||||
unsigned int d_size;
|
unsigned int d_size;
|
||||||
|
|
|
@ -47,18 +47,6 @@ static inline u32 ieee802154_addr_hash(const struct ieee802154_addr *a)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* private device info */
|
|
||||||
struct lowpan_802154_dev {
|
|
||||||
struct net_device *wdev; /* wpan device ptr */
|
|
||||||
u16 fragment_tag;
|
|
||||||
};
|
|
||||||
|
|
||||||
static inline struct
|
|
||||||
lowpan_802154_dev *lowpan_802154_dev(const struct net_device *dev)
|
|
||||||
{
|
|
||||||
return (struct lowpan_802154_dev *)lowpan_dev(dev)->priv;
|
|
||||||
}
|
|
||||||
|
|
||||||
int lowpan_frag_rcv(struct sk_buff *skb, const u8 frag_type);
|
int lowpan_frag_rcv(struct sk_buff *skb, const u8 frag_type);
|
||||||
void lowpan_net_frag_exit(void);
|
void lowpan_net_frag_exit(void);
|
||||||
int lowpan_net_frag_init(void);
|
int lowpan_net_frag_init(void);
|
||||||
|
|
Loading…
Reference in New Issue