diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/can/platform/mcp251x.h | 2 | ||||
| -rw-r--r-- | include/linux/netfilter.h | 3 | ||||
| -rw-r--r-- | include/linux/netfilter/ipset/ip_set.h | 2 | ||||
| -rw-r--r-- | include/linux/netfilter/ipset/ip_set_ahash.h | 3 | ||||
| -rw-r--r-- | include/net/ip_vs.h | 2 | ||||
| -rw-r--r-- | include/net/mac80211.h | 15 | ||||
| -rw-r--r-- | include/net/route.h | 5 |
7 files changed, 23 insertions, 9 deletions
diff --git a/include/linux/can/platform/mcp251x.h b/include/linux/can/platform/mcp251x.h index 8e20540043f5..089fe43211a4 100644 --- a/include/linux/can/platform/mcp251x.h +++ b/include/linux/can/platform/mcp251x.h | |||
| @@ -12,6 +12,7 @@ | |||
| 12 | /** | 12 | /** |
| 13 | * struct mcp251x_platform_data - MCP251X SPI CAN controller platform data | 13 | * struct mcp251x_platform_data - MCP251X SPI CAN controller platform data |
| 14 | * @oscillator_frequency: - oscillator frequency in Hz | 14 | * @oscillator_frequency: - oscillator frequency in Hz |
| 15 | * @irq_flags: - IRQF configuration flags | ||
| 15 | * @board_specific_setup: - called before probing the chip (power,reset) | 16 | * @board_specific_setup: - called before probing the chip (power,reset) |
| 16 | * @transceiver_enable: - called to power on/off the transceiver | 17 | * @transceiver_enable: - called to power on/off the transceiver |
| 17 | * @power_enable: - called to power on/off the mcp *and* the | 18 | * @power_enable: - called to power on/off the mcp *and* the |
| @@ -24,6 +25,7 @@ | |||
| 24 | 25 | ||
| 25 | struct mcp251x_platform_data { | 26 | struct mcp251x_platform_data { |
| 26 | unsigned long oscillator_frequency; | 27 | unsigned long oscillator_frequency; |
| 28 | unsigned long irq_flags; | ||
| 27 | int (*board_specific_setup)(struct spi_device *spi); | 29 | int (*board_specific_setup)(struct spi_device *spi); |
| 28 | int (*transceiver_enable)(int enable); | 30 | int (*transceiver_enable)(int enable); |
| 29 | int (*power_enable) (int enable); | 31 | int (*power_enable) (int enable); |
diff --git a/include/linux/netfilter.h b/include/linux/netfilter.h index eeec00abb664..7fa95df60146 100644 --- a/include/linux/netfilter.h +++ b/include/linux/netfilter.h | |||
| @@ -270,7 +270,8 @@ struct nf_afinfo { | |||
| 270 | unsigned int dataoff, | 270 | unsigned int dataoff, |
| 271 | unsigned int len, | 271 | unsigned int len, |
| 272 | u_int8_t protocol); | 272 | u_int8_t protocol); |
| 273 | int (*route)(struct dst_entry **dst, struct flowi *fl); | 273 | int (*route)(struct net *net, struct dst_entry **dst, |
| 274 | struct flowi *fl, bool strict); | ||
| 274 | void (*saveroute)(const struct sk_buff *skb, | 275 | void (*saveroute)(const struct sk_buff *skb, |
| 275 | struct nf_queue_entry *entry); | 276 | struct nf_queue_entry *entry); |
| 276 | int (*reroute)(struct sk_buff *skb, | 277 | int (*reroute)(struct sk_buff *skb, |
diff --git a/include/linux/netfilter/ipset/ip_set.h b/include/linux/netfilter/ipset/ip_set.h index ec333d83f3b4..5a262e3ae715 100644 --- a/include/linux/netfilter/ipset/ip_set.h +++ b/include/linux/netfilter/ipset/ip_set.h | |||
| @@ -293,7 +293,7 @@ struct ip_set { | |||
| 293 | /* Lock protecting the set data */ | 293 | /* Lock protecting the set data */ |
| 294 | rwlock_t lock; | 294 | rwlock_t lock; |
| 295 | /* References to the set */ | 295 | /* References to the set */ |
| 296 | atomic_t ref; | 296 | u32 ref; |
| 297 | /* The core set type */ | 297 | /* The core set type */ |
| 298 | struct ip_set_type *type; | 298 | struct ip_set_type *type; |
| 299 | /* The type variant doing the real job */ | 299 | /* The type variant doing the real job */ |
diff --git a/include/linux/netfilter/ipset/ip_set_ahash.h b/include/linux/netfilter/ipset/ip_set_ahash.h index ec9d9bea1e37..a0196ac79051 100644 --- a/include/linux/netfilter/ipset/ip_set_ahash.h +++ b/include/linux/netfilter/ipset/ip_set_ahash.h | |||
| @@ -515,8 +515,7 @@ type_pf_head(struct ip_set *set, struct sk_buff *skb) | |||
| 515 | if (h->netmask != HOST_MASK) | 515 | if (h->netmask != HOST_MASK) |
| 516 | NLA_PUT_U8(skb, IPSET_ATTR_NETMASK, h->netmask); | 516 | NLA_PUT_U8(skb, IPSET_ATTR_NETMASK, h->netmask); |
| 517 | #endif | 517 | #endif |
| 518 | NLA_PUT_NET32(skb, IPSET_ATTR_REFERENCES, | 518 | NLA_PUT_NET32(skb, IPSET_ATTR_REFERENCES, htonl(set->ref - 1)); |
| 519 | htonl(atomic_read(&set->ref) - 1)); | ||
| 520 | NLA_PUT_NET32(skb, IPSET_ATTR_MEMSIZE, htonl(memsize)); | 519 | NLA_PUT_NET32(skb, IPSET_ATTR_MEMSIZE, htonl(memsize)); |
| 521 | if (with_timeout(h->timeout)) | 520 | if (with_timeout(h->timeout)) |
| 522 | NLA_PUT_NET32(skb, IPSET_ATTR_TIMEOUT, htonl(h->timeout)); | 521 | NLA_PUT_NET32(skb, IPSET_ATTR_TIMEOUT, htonl(h->timeout)); |
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index 30b49ed72f0d..4d1b71ae82ba 100644 --- a/include/net/ip_vs.h +++ b/include/net/ip_vs.h | |||
| @@ -52,7 +52,7 @@ static inline struct net *skb_net(const struct sk_buff *skb) | |||
| 52 | */ | 52 | */ |
| 53 | if (likely(skb->dev && skb->dev->nd_net)) | 53 | if (likely(skb->dev && skb->dev->nd_net)) |
| 54 | return dev_net(skb->dev); | 54 | return dev_net(skb->dev); |
| 55 | if (skb_dst(skb)->dev) | 55 | if (skb_dst(skb) && skb_dst(skb)->dev) |
| 56 | return dev_net(skb_dst(skb)->dev); | 56 | return dev_net(skb_dst(skb)->dev); |
| 57 | WARN(skb->sk, "Maybe skb_sknet should be used in %s() at line:%d\n", | 57 | WARN(skb->sk, "Maybe skb_sknet should be used in %s() at line:%d\n", |
| 58 | __func__, __LINE__); | 58 | __func__, __LINE__); |
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index cefe1b37c493..965f1b16e53a 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
| @@ -1753,8 +1753,19 @@ enum ieee80211_ampdu_mlme_action { | |||
| 1753 | * that TX/RX_STOP can pass NULL for this parameter. | 1753 | * that TX/RX_STOP can pass NULL for this parameter. |
| 1754 | * The @buf_size parameter is only valid when the action is set to | 1754 | * The @buf_size parameter is only valid when the action is set to |
| 1755 | * %IEEE80211_AMPDU_TX_OPERATIONAL and indicates the peer's reorder | 1755 | * %IEEE80211_AMPDU_TX_OPERATIONAL and indicates the peer's reorder |
| 1756 | * buffer size (number of subframes) for this session -- aggregates | 1756 | * buffer size (number of subframes) for this session -- the driver |
| 1757 | * containing more subframes than this may not be transmitted to the peer. | 1757 | * may neither send aggregates containing more subframes than this |
| 1758 | * nor send aggregates in a way that lost frames would exceed the | ||
| 1759 | * buffer size. If just limiting the aggregate size, this would be | ||
| 1760 | * possible with a buf_size of 8: | ||
| 1761 | * - TX: 1.....7 | ||
| 1762 | * - RX: 2....7 (lost frame #1) | ||
| 1763 | * - TX: 8..1... | ||
| 1764 | * which is invalid since #1 was now re-transmitted well past the | ||
| 1765 | * buffer size of 8. Correct ways to retransmit #1 would be: | ||
| 1766 | * - TX: 1 or 18 or 81 | ||
| 1767 | * Even "189" would be wrong since 1 could be lost again. | ||
| 1768 | * | ||
| 1758 | * Returns a negative error code on failure. | 1769 | * Returns a negative error code on failure. |
| 1759 | * The callback can sleep. | 1770 | * The callback can sleep. |
| 1760 | * | 1771 | * |
diff --git a/include/net/route.h b/include/net/route.h index b24288595e58..3782cddd1383 100644 --- a/include/net/route.h +++ b/include/net/route.h | |||
| @@ -64,6 +64,7 @@ struct rtable { | |||
| 64 | 64 | ||
| 65 | __be32 rt_dst; /* Path destination */ | 65 | __be32 rt_dst; /* Path destination */ |
| 66 | __be32 rt_src; /* Path source */ | 66 | __be32 rt_src; /* Path source */ |
| 67 | int rt_route_iif; | ||
| 67 | int rt_iif; | 68 | int rt_iif; |
| 68 | int rt_oif; | 69 | int rt_oif; |
| 69 | __u32 rt_mark; | 70 | __u32 rt_mark; |
| @@ -80,12 +81,12 @@ struct rtable { | |||
| 80 | 81 | ||
| 81 | static inline bool rt_is_input_route(struct rtable *rt) | 82 | static inline bool rt_is_input_route(struct rtable *rt) |
| 82 | { | 83 | { |
| 83 | return rt->rt_iif != 0; | 84 | return rt->rt_route_iif != 0; |
| 84 | } | 85 | } |
| 85 | 86 | ||
| 86 | static inline bool rt_is_output_route(struct rtable *rt) | 87 | static inline bool rt_is_output_route(struct rtable *rt) |
| 87 | { | 88 | { |
| 88 | return rt->rt_iif == 0; | 89 | return rt->rt_route_iif == 0; |
| 89 | } | 90 | } |
| 90 | 91 | ||
| 91 | struct ip_rt_acct { | 92 | struct ip_rt_acct { |
