#ifndef __IEEE802154_6LOWPAN_I_H__ #define __IEEE802154_6LOWPAN_I_H__ #include #include #include #include typedef unsigned __bitwise lowpan_rx_result; #define RX_CONTINUE ((__force lowpan_rx_result) 0u) #define RX_DROP_UNUSABLE ((__force lowpan_rx_result) 1u) #define RX_DROP ((__force lowpan_rx_result) 2u) #define RX_QUEUED ((__force lowpan_rx_result) 3u) #define LOWPAN_DISPATCH_FRAG1 0xc0 #define LOWPAN_DISPATCH_FRAGN 0xe0 struct lowpan_create_arg { u16 tag; u16 d_size; const struct ieee802154_addr *src; const struct ieee802154_addr *dst; }; /* Equivalent of ipv4 struct ip */ struct lowpan_frag_queue { struct inet_frag_queue q; u16 tag; u16 d_size; struct ieee802154_addr saddr; struct ieee802154_addr daddr; }; static inline u32 ieee802154_addr_hash(const struct ieee802154_addr *a) { switch (a->mode) { case IEEE802154_ADDR_LONG: return (((__force u64)a->extended_addr) >> 32) ^ (((__force u64)a->extended_addr) & 0xffffffff); case IEEE802154_ADDR_SHORT: return (__force u32)(a->short_addr + (a->pan_id << 16)); default: return 0; } } int lowpan_frag_rcv(struct sk_buff *skb, const u8 frag_type); void lowpan_net_frag_exit(void); int lowpan_net_frag_init(void); void lowpan_rx_init(void); void lowpan_rx_exit(void); int lowpan_header_create(struct sk_buff *skb, struct net_device *dev, unsigned short type, const void *_daddr, const void *_saddr, unsigned int len); netdev_tx_t lowpan_xmit(struct sk_buff *skb, struct net_device *dev); int lowpan_iphc_decompress(struct sk_buff *skb); lowpan_rx_result lowpan_rx_h_ipv6(struct sk_buff *skb); #endif /* __IEEE802154_6LOWPAN_I_H__ */ 4/protocol.c?h=nds-private-remove'>logtreecommitdiff
d='get'>
AgeCommit message (Expand)AuthorFilesLines
context:
space:
mode:
authorMarc Zyngier <marc.zyngier@arm.com>2017-01-17 14:21:56 +0000
committerBjorn Helgaas <bhelgaas@google.com>2017-01-17 08:41:51 -0600
commit4d191b1b63c209e37bf27938ef365244d3c41084 (patch)
treef2ab6cdb65ddacdf2e7c019cd55e353f0c16b400 /net/sunrpc/xprtrdma/Makefile
parent51ebfc92b72b4f7dac1ab45683bf56741e454b8c (diff)
PCI/MSI: pci-xgene-msi: Fix CPU hotplug registration handling
The conversion to the new hotplug state machine introduced a regression where a successful hotplug registration would be treated as an error, effectively disabling the MSI driver forever. Fix it by doing the proper check on the return value. Fixes: 9c248f8896e6 ("PCI/xgene-msi: Convert to hotplug state machine") Signed-off-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Tested-by: Duc Dang <dhdang@apm.com> CC: Thomas Gleixner <tglx@linutronix.de> CC: stable@vger.kernel.org
Diffstat (limited to 'net/sunrpc/xprtrdma/Makefile')