[PATCH] fib6: fix adding default route as first route

Thomas Monjalon thomas at monjalon.net
Tue Oct 17 15:27:31 CEST 2023


02/10/2023 17:12, Vladimir Medvedkin:
> Currently when adding default route as first route
> it is not added and no error is reported.
> When we enter the loop over an address range in
> the general case we will eventually reach the check
> for when the range has ended, and exit the loop.
> However when adding default route as first route,
> since address range covered begins and ends at zero
> this also triggers loop exit without writing to the table.
> 
> Fixed by adding check for default route,
> i.e. both ledge and redge are equal to 0::0.
> 
> Bugzilla ID: 1272
> Fixes: c3e12e0f0354 ("fib: add dataplane algorithm for IPv6")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Vladimir Medvedkin <vladimir.medvedkin at intel.com>

Applied, thanks.





More information about the stable mailing list