diff options
author | David Ahern <dsahern@kernel.org> | 2022-01-29 02:53:47 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-01-31 14:33:10 +0300 |
commit | 47ed9442b2ecfcdc72889667236d6c59b6a3337e (patch) | |
tree | 44e2148dad5a5175dc5091ea318f908ff8ebad45 /net/ipv4/route.c | |
parent | d192181c2ccbeb6403397b070b82676d9d665ec2 (diff) | |
download | linux-47ed9442b2ecfcdc72889667236d6c59b6a3337e.tar.xz |
ipv4: Make ip_idents_reserve static
ip_idents_reserve is only used in net/ipv4/route.c. Make it static
and remove the export.
Signed-off-by: David Ahern <dsahern@kernel.org>
Cc: Eric Dumazet <edumazet@google.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/route.c')
-rw-r--r-- | net/ipv4/route.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index e42e283b5515..8b35075088e1 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c @@ -457,7 +457,7 @@ static u32 *ip_tstamps __read_mostly; * if one generator is seldom used. This makes hard for an attacker * to infer how many packets were sent between two points in time. */ -u32 ip_idents_reserve(u32 hash, int segs) +static u32 ip_idents_reserve(u32 hash, int segs) { u32 bucket, old, now = (u32)jiffies; atomic_t *p_id; @@ -478,7 +478,6 @@ u32 ip_idents_reserve(u32 hash, int segs) */ return atomic_add_return(segs + delta, p_id) - segs; } -EXPORT_SYMBOL(ip_idents_reserve); void __ip_select_ident(struct net *net, struct iphdr *iph, int segs) { |