X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fnet%2Fipv6.h;h=c39121f6bc940d10d02214f2975d05f630e2b7f1;hb=94225ab0bef6f32108eaa410bb894caa2b4317e2;hp=c033ed00df7da0e22a0735bbcf791e30c05cf486;hpb=8b29336fe01dab3541ebb283daddf9d0168c3f05;p=firefly-linux-kernel-4.4.55.git diff --git a/include/net/ipv6.h b/include/net/ipv6.h index c033ed00df7d..c39121f6bc94 100644 --- a/include/net/ipv6.h +++ b/include/net/ipv6.h @@ -463,17 +463,7 @@ static inline int ipv6_addr_diff(const struct in6_addr *a1, const struct in6_add return __ipv6_addr_diff(a1, a2, sizeof(struct in6_addr)); } -static __inline__ void ipv6_select_ident(struct frag_hdr *fhdr) -{ - static u32 ipv6_fragmentation_id = 1; - static DEFINE_SPINLOCK(ip6_id_lock); - - spin_lock_bh(&ip6_id_lock); - fhdr->identification = htonl(ipv6_fragmentation_id); - if (++ipv6_fragmentation_id == 0) - ipv6_fragmentation_id = 1; - spin_unlock_bh(&ip6_id_lock); -} +extern void ipv6_select_ident(struct frag_hdr *fhdr, struct in6_addr *addr); /* * Prototypes exported by ipv6