]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
ipv4: Calculate multipath hash inside switch statement
authorIdo Schimmel <idosch@OSS.NVIDIA.COM>
Mon, 17 May 2021 18:15:17 +0000 (21:15 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 May 2021 20:27:32 +0000 (13:27 -0700)
commit2e68ea92684181412b73979baf1af7d04619c52c
treedaf5c1b1c4e65e0f32877806885539f3340cbf55
parent06b38e233ce4745571106cba4f39fc8c5eda9c29
ipv4: Calculate multipath hash inside switch statement

A subsequent patch will add another multipath hash policy where the
multipath hash is calculated directly by the policy specific code and
not outside of the switch statement.

Prepare for this change by moving the multipath hash calculation inside
the switch statement.

No functional changes intended.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/route.c