OSDN Git Service

net/bonding: Take IP hash logic into a helper
authorTariq Toukan <tariqt@nvidia.com>
Sun, 17 Jan 2021 14:59:43 +0000 (16:59 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 19 Jan 2021 04:48:40 +0000 (20:48 -0800)
commit5b99854540e35c2c6a226bcdb4bafbae1bccad5a
tree46727c96c680f5ce6800487343135e821b10f02d
parent719a402cf60311b1cdff3f6320abaecdcc5e46b7
net/bonding: Take IP hash logic into a helper

Hash logic on L3 will be used in a downstream patch for one more use
case.
Take it to a function for a better code reuse.

Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Boris Pismenny <borisp@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/bonding/bond_main.c