diff options
| author | David S. Miller <davem@davemloft.net> | 2014-07-30 16:25:49 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2014-07-30 16:25:49 -0400 |
| commit | f139c74a8df071217dcd63f3ef06ae7be7071c4d (patch) | |
| tree | 5711f695577a18a06dbcd0101956e97b388ffa1a /include/net/ip.h | |
| parent | bd695a5f0ccf7b38982c426d86055ff3591c9b5b (diff) | |
| parent | 26bcd8b72563b4c54892c4c2a409f6656fb8ae8b (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/ip.h')
| -rw-r--r-- | include/net/ip.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/include/net/ip.h b/include/net/ip.h index 09b32da1b929..db4a771b9ef3 100644 --- a/include/net/ip.h +++ b/include/net/ip.h | |||
| @@ -316,16 +316,7 @@ static inline unsigned int ip_skb_dst_mtu(const struct sk_buff *skb) | |||
| 316 | } | 316 | } |
| 317 | } | 317 | } |
| 318 | 318 | ||
| 319 | #define IP_IDENTS_SZ 2048u | 319 | u32 ip_idents_reserve(u32 hash, int segs); |
| 320 | extern atomic_t *ip_idents; | ||
| 321 | |||
| 322 | static inline u32 ip_idents_reserve(u32 hash, int segs) | ||
| 323 | { | ||
| 324 | atomic_t *id_ptr = ip_idents + hash % IP_IDENTS_SZ; | ||
| 325 | |||
| 326 | return atomic_add_return(segs, id_ptr) - segs; | ||
| 327 | } | ||
| 328 | |||
| 329 | void __ip_select_ident(struct iphdr *iph, int segs); | 320 | void __ip_select_ident(struct iphdr *iph, int segs); |
| 330 | 321 | ||
| 331 | static inline void ip_select_ident_segs(struct sk_buff *skb, struct sock *sk, int segs) | 322 | static inline void ip_select_ident_segs(struct sk_buff *skb, struct sock *sk, int segs) |
