net: replace macros net_random and net_srandom with direct calls to prandom
This patch removes the net_random and net_srandom macros and replaces them with direct calls to the prandom ones. As new commits only seem to use prandom_u32 there is no use to keep them around. This change makes it easier to grep for users of prandom_u32. Signed-off-by: Aruna-Hewapathirane <aruna.hewapathirane@gmail.com> Suggested-by: Hannes Frederic Sowa <hannes@stressinduktion.org> Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
825edac4e7
commit
63862b5bef
@@ -303,7 +303,7 @@ static inline unsigned long red_calc_qavg(const struct red_parms *p,
|
||||
|
||||
static inline u32 red_random(const struct red_parms *p)
|
||||
{
|
||||
return reciprocal_divide(net_random(), p->max_P_reciprocal);
|
||||
return reciprocal_divide(prandom_u32(), p->max_P_reciprocal);
|
||||
}
|
||||
|
||||
static inline int red_mark_probability(const struct red_parms *p,
|
||||
|
||||
Reference in New Issue
Block a user