]> git.baikalelectronics.ru Git - kernel.git/commit
net/bonding: Declare TLS RX device offload support
authorTariq Toukan <tariqt@nvidia.com>
Sun, 17 Jan 2021 14:59:47 +0000 (16:59 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 19 Jan 2021 04:48:40 +0000 (20:48 -0800)
commit48c39ee3b15070001a243b00900c1c3523df6156
tree8364dcc955a86ab90778fc9dad7fb331af5cb301
parentf2ba03f7abcbfdcc9bafcdb53e1712d4f94c662e
net/bonding: Declare TLS RX device offload support

Following the description in previous patch (for TX):
As the bond interface is being bypassed by the TLS module, interacting
directly against the lower devs, there is no way for the bond interface
to disable its device offload capabilities, as long as the mode/policy
config allows it.
Hence, the feature flag is not directly controllable, but just reflects
the offload status based on the logic under bond_sk_check().

Here we just declare RX device offload support, and expose it via the
NETIF_F_HW_TLS_RX flag.

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