]> asedeno.scripts.mit.edu Git - linux.git/commit
pktgen: Allow configuration of IPv6 source address range
authorNiu Xilei <niu_xilei@163.com>
Tue, 14 Jan 2020 03:12:29 +0000 (11:12 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Jan 2020 02:30:56 +0000 (18:30 -0800)
commit7786a1af2a6bceb07860ec720e74714004438834
tree2372b9ce861859b45b10264fd2b9bbbc51825647
parenta4d35e77357c72acd52d6b1e7093b750b384b7cc
pktgen: Allow configuration of IPv6 source address range

Pktgen can use only one IPv6 source address from output device or src6
command setting. In pressure test we need create lots of sessions more
than 65535. So add src6_min and src6_max command to set the range.

Signed-off-by: Niu Xilei <niu_xilei@163.com>
Changes since v3:
 - function set_src_in6_addr use static instead of static inline
 - precompute min_in6_l,min_in6_h,max_in6_h,max_in6_l in setup time
Changes since v2:
 - reword subject line
Changes since v1:
 - only create IPv6 source address over least significant 64 bit range

Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/pktgen.c