diff options
author | Tariq Toukan <tariqt@nvidia.com> | 2021-01-17 15:59:44 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-01-19 05:48:40 +0100 |
commit | 007feb87fb15933b5de7135e6bdf57c219b3fbec (patch) | |
tree | ada163a6bc36e2a0e78555fbd3f2b528163291df /include/net/bonding.h | |
parent | net/bonding: Take IP hash logic into a helper (diff) | |
download | linux-007feb87fb15933b5de7135e6bdf57c219b3fbec.tar.xz linux-007feb87fb15933b5de7135e6bdf57c219b3fbec.zip |
net/bonding: Implement ndo_sk_get_lower_dev
Add ndo_sk_get_lower_dev() implementation for bond interfaces.
Support only for the cases where the socket's and SKBs' hash
yields identical value for the whole connection lifetime.
Here we restrict it to L3+4 sockets only, with
xmit_hash_policy==LAYER34 and bond modes xor/802.3ad.
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Boris Pismenny <borisp@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net/bonding.h')
-rw-r--r-- | include/net/bonding.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/bonding.h b/include/net/bonding.h index adc3da776970..21497193c4a4 100644 --- a/include/net/bonding.h +++ b/include/net/bonding.h @@ -265,6 +265,8 @@ struct bond_vlan_tag { unsigned short vlan_id; }; +bool bond_sk_check(struct bonding *bond); + /** * Returns NULL if the net_device does not belong to any of the bond's slaves * |