~bladernr/ubuntu/+source/linux/+git/hirsute:1915717-mlx-tls-offload-patches

Last commit made on 2021-04-02
Get this branch:
git clone -b 1915717-mlx-tls-offload-patches https://git.launchpad.net/~bladernr/ubuntu/+source/linux/+git/hirsute
Only Jeff Lane  can upload to this branch. If you are Jeff Lane  please log in for upload directions.

Branch merges

Branch information

Name:
1915717-mlx-tls-offload-patches
Repository:
lp:~bladernr/ubuntu/+source/linux/+git/hirsute

Recent commits

ce45f70... by Tariq Toukan <email address hidden>

net/tls: Except bond interface from some TLS checks

BugLink: https://bugs.launchpad.net/bugs/1915717

In the tls_dev_event handler, ignore tlsdev_ops requirement for bond
interfaces, they do not exist as the interaction is done directly with
the lower device.

Also, make the validate function pass when it's called with the upper
bond interface.

Signed-off-by: Tariq Toukan <email address hidden>
Reviewed-by: Boris Pismenny <email address hidden>
Signed-off-by: Jakub Kicinski <email address hidden>
(cherry picked from commit 4e5a73329051e5b24fb1d715a5417ef3f95b08a6)
Signed-off-by: Jeff Lane <email address hidden>

fb949a1... by Tariq Toukan <email address hidden>

net/tls: Device offload to use lowest netdevice in chain

BugLink: https://bugs.launchpad.net/bugs/1915717

Do not call the tls_dev_ops of upper devices. Instead, ask them
for the proper lowest device and communicate with it directly.

Signed-off-by: Tariq Toukan <email address hidden>
Reviewed-by: Boris Pismenny <email address hidden>
Signed-off-by: Jakub Kicinski <email address hidden>
(cherry picked from commit 153cbd137f0ad9ee334fa805155b983e25a432e7)
Signed-off-by: Jeff Lane <email address hidden>

9a1c0c0... by Tariq Toukan <email address hidden>

net/bonding: Declare TLS RX device offload support

BugLink: https://bugs.launchpad.net/bugs/1915717

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 <email address hidden>
Reviewed-by: Boris Pismenny <email address hidden>
Signed-off-by: Jakub Kicinski <email address hidden>
(cherry picked from commit dc5809f9e2b674a489723bd8d0131c97e565ca8d)
Signed-off-by: Jeff Lane <email address hidden>

571e567... by Tariq Toukan <email address hidden>

net/bonding: Implement TLS TX device offload

BugLink: https://bugs.launchpad.net/bugs/1915717

Implement TLS TX device offload for bonding interfaces.
This allows kTLS sockets running on a bond to benefit from the
device offload on capable lower devices.

To allow a simple and fast maintenance of the TLS context in SW and
lower devices, we bind the TLS socket to a specific lower dev.
To achieve a behavior similar to SW kTLS, we support only balance-xor
and 802.3ad modes, with xmit_hash_policy=layer3+4. This is enforced
in bond_sk_check(), done in a previous patch.

For the above configuration, the SW implementation keeps picking the
same exact lower dev for all the socket's SKBs. The device offload
behaves similarly, making the decision once at the connection creation.

Per socket, the TLS module should work directly with the lowest netdev
in chain, to call the tls_dev_ops operations.

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 current offload status based on the logic under bond_sk_check().

Signed-off-by: Tariq Toukan <email address hidden>
Reviewed-by: Boris Pismenny <email address hidden>
Signed-off-by: Jakub Kicinski <email address hidden>
(cherry picked from commit 89df6a8104706f94800ed527ad73d07465ea4d12)
Signed-off-by: Jeff Lane <email address hidden>

4fcda8c... by Tariq Toukan <email address hidden>

net/bonding: Take update_features call out of XFRM funciton

BugLink: https://bugs.launchpad.net/bugs/1915717

In preparation for more cases that call netdev_update_features().

While here, move the features logic to the stage where struct bond
is already updated, and pass it as the only parameter to function
bond_set_xfrm_features().

Signed-off-by: Tariq Toukan <email address hidden>
Reviewed-by: Boris Pismenny <email address hidden>
Signed-off-by: Jakub Kicinski <email address hidden>
(cherry picked from commit f45583de361db2160fbca4a99c20a0c44b34f36a)
Signed-off-by: Jeff Lane <email address hidden>

f282b45... by Tariq Toukan <email address hidden>

net/bonding: Implement ndo_sk_get_lower_dev

BugLink: https://bugs.launchpad.net/bugs/1915717

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 <email address hidden>
Reviewed-by: Boris Pismenny <email address hidden>
Signed-off-by: Jakub Kicinski <email address hidden>
(cherry picked from commit 007feb87fb15933b5de7135e6bdf57c219b3fbec)
Signed-off-by: Jeff Lane <email address hidden>

5975508... by Tariq Toukan <email address hidden>

net/bonding: Take IP hash logic into a helper

BugLink: https://bugs.launchpad.net/bugs/1915717

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 <email address hidden>
Reviewed-by: Boris Pismenny <email address hidden>
Signed-off-by: Jakub Kicinski <email address hidden>
(cherry picked from commit 5b99854540e35c2c6a226bcdb4bafbae1bccad5a)
Signed-off-by: Jeff Lane <email address hidden>

795c176... by Tariq Toukan <email address hidden>

net: netdevice: Add operation ndo_sk_get_lower_dev

BugLink: https://bugs.launchpad.net/bugs/1915717

ndo_sk_get_lower_dev returns the lower netdev that corresponds to
a given socket.
Additionally, we implement a helper netdev_sk_get_lowest_dev() to get
the lowest one in chain.

Signed-off-by: Tariq Toukan <email address hidden>
Reviewed-by: Boris Pismenny <email address hidden>
Signed-off-by: Jakub Kicinski <email address hidden>
(cherry picked from commit 719a402cf60311b1cdff3f6320abaecdcc5e46b7)
Signed-off-by: Jeff Lane <email address hidden>

ae35f0b... by Andrea Righi

UBUNTU: Ubuntu-5.11.0-13.14

Signed-off-by: Andrea Righi <email address hidden>

a1917eb... by Andrea Righi

UBUNTU: Start new release

Ignore: yes
Signed-off-by: Andrea Righi <email address hidden>