examples/l3fwd: fix LPM IPv6 subnets
authorConor Walsh <conor.walsh@intel.com>
Fri, 16 Apr 2021 17:19:37 +0000 (17:19 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 20 Apr 2021 18:05:31 +0000 (20:05 +0200)
commit0c74a91ad6eb016cbc7bfd92d5aa414d04aa31ef
tree9e5d1db75d9e180fcf15a59f87d3e1296f2e4524
parenta8f8b672d575d65970e8bc20f28ee6e302d63d38
examples/l3fwd: fix LPM IPv6 subnets

Any IP within the 2001:200::/48 subnet will match all the routes given
instead of 1 individual route and the application cannot
differentiate between them.
The change in this patch allows the ports to be individually matched using
smaller /64 ranges for each port. These smaller subnet ranges are still
within the 2001:200::/48 subnet range set aside for benchmarking
in RFC5180.
l3fwd will now use 2001:200:0:{0-7}::/64 where 0-7 is the port ID for IPv6.

Fixes: 37afe381bde4 ("examples/l3fwd: use reserved IP addresses")
Cc: stable@dpdk.org
Signed-off-by: Conor Walsh <conor.walsh@intel.com>
Acked-by: Vladimir Medvedkin <vladimir.medvedkin@intel.com>
examples/l3fwd/l3fwd_lpm.c