ipv4: ignore dst hint for multipath routes
authorSriram Yagnaraman <sriram.yagnaraman@est.tech>
Thu, 31 Aug 2023 08:03:30 +0000 (10:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Sep 2023 07:11:51 +0000 (08:11 +0100)
commit6ac66cb03ae306c2e288a9be18226310529f5b25
tree94c8e872d5c3db3244773688c23fc9b0686e4496
parent2ea35288c83b3d501a88bc17f2df8f176b5cc96f
ipv4: ignore dst hint for multipath routes

Route hints when the nexthop is part of a multipath group causes packets
in the same receive batch to be sent to the same nexthop irrespective of
the multipath hash of the packet. So, do not extract route hint for
packets whose destination is part of a multipath group.

A new SKB flag IPSKB_MULTIPATH is introduced for this purpose, set the
flag when route is looked up in ip_mkroute_input() and use it in
ip_extract_route_hint() to check for the existence of the flag.

Fixes: 02b24941619f ("ipv4: use dst hint for ipv4 list receive")
Signed-off-by: Sriram Yagnaraman <sriram.yagnaraman@est.tech>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip.h
net/ipv4/ip_input.c
net/ipv4/route.c