summaryrefslogtreecommitdiffstats
path: root/include/net/ip.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2014-07-30 16:25:49 -0400
committerDavid S. Miller <davem@davemloft.net>2014-07-30 16:25:49 -0400
commitf139c74a8df071217dcd63f3ef06ae7be7071c4d (patch)
tree5711f695577a18a06dbcd0101956e97b388ffa1a /include/net/ip.h
parentbd695a5f0ccf7b38982c426d86055ff3591c9b5b (diff)
parent26bcd8b72563b4c54892c4c2a409f6656fb8ae8b (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.h11
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 319u32 ip_idents_reserve(u32 hash, int segs);
320extern atomic_t *ip_idents;
321
322static 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
329void __ip_select_ident(struct iphdr *iph, int segs); 320void __ip_select_ident(struct iphdr *iph, int segs);
330 321
331static inline void ip_select_ident_segs(struct sk_buff *skb, struct sock *sk, int segs) 322static inline void ip_select_ident_segs(struct sk_buff *skb, struct sock *sk, int segs)