[dpdk-stable] [dpdk-dev] [PATCH] rib: fix the IPv6 depth mask

Thomas Monjalon thomas at monjalon.net
Mon Oct 25 19:14:57 CEST 2021


06/09/2021 17:54, Vladimir Medvedkin:
> Fixes: 03b8372a9a73 ("rib: fix max depth IPv6 lookup")
> Cc: ohilyard at iol.unh.edu
> Cc: stable at dpdk.org
> 
> Signed-off-by: Vladimir Medvedkin <vladimir.medvedkin at intel.com>

An explanation would have been appreciated.

> -	index = (depth & (UINT8_MAX - 1)) / CHAR_BIT;
> +	index = (depth & INT8_MAX) / CHAR_BIT;

Applied, thanks.




More information about the stable mailing list