aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/vmalloc.c
diff options
context:
space:
mode:
authorIdo Schimmel <[email protected]>2025-04-02 11:42:24 +0000
committerJakub Kicinski <[email protected]>2025-04-04 14:30:07 +0000
commit8b8e0dd357165e0258d9f9cdab5366720ed2f619 (patch)
treec436cb7312bf097dc43b9939932a91c2e96b8b5c /rust/helpers/vmalloc.c
parentipv6: Start path selection from the first nexthop (diff)
downloadkernel-8b8e0dd357165e0258d9f9cdab5366720ed2f619.tar.gz
kernel-8b8e0dd357165e0258d9f9cdab5366720ed2f619.zip
ipv6: Do not consider link down nexthops in path selection
Nexthops whose link is down are not supposed to be considered during path selection when the "ignore_routes_with_linkdown" sysctl is set. This is done by assigning them a negative region boundary. However, when comparing the computed hash (unsigned) with the region boundary (signed), the negative region boundary is treated as unsigned, resulting in incorrect nexthop selection. Fix by treating the computed hash as signed. Note that the computed hash is always in range of [0, 2^31 - 1]. Fixes: 3d709f69a3e7 ("ipv6: Use hash-threshold instead of modulo-N") Signed-off-by: Ido Schimmel <[email protected]> Reviewed-by: Willem de Bruijn <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'rust/helpers/vmalloc.c')
0 files changed, 0 insertions, 0 deletions