netem: add prng attribute to netem_sched_data
authorFrançois Michel <francois.michel@uclouvain.be>
Tue, 15 Aug 2023 09:23:38 +0000 (11:23 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 18 Aug 2023 02:15:05 +0000 (19:15 -0700)
commit4072d97ddc447ce9dd8f7a39cdf6f92d2031bb01
tree87096da91c4853b507a2aa966892cd3f876c9622
parenta5e5b2cd47bc7ac853b3ae9d4af97d08caaf585d
netem: add prng attribute to netem_sched_data

Add prng attribute to struct netem_sched_data and
allows setting the seed of the PRNG through netlink
using the new TCA_NETEM_PRNG_SEED attribute.
The PRNG attribute is not actually used yet.

Signed-off-by: François Michel <francois.michel@uclouvain.be>
Reviewed-by: Simon Horman <horms@kernel.org>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
Link: https://lore.kernel.org/r/20230815092348.1449179-2-francois.michel@uclouvain.be
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/uapi/linux/pkt_sched.h
net/sched/sch_netem.c