tls: Introduce and use RX async resync request cancel function
Status from this message: This series was applied to netdev/net.git (main)
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest3 patches 0 repliesApplied 3/3
- v23 patches 8 repliesSuperseded
- v13 patches 9 repliesSuperseded
Changes in v3 from the cover letter
- Add review tags.
- Remove Fixes tag from preparation patches.
- Remove duplicated counter increase.
- Fix typo in rcd_delta.
Patches in v3 All 3 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | net: tls: Change async resync helpers argumentdrivers/ include/ | +15 | 0 replies | Applied |
| 2/3 | net: tls: Cancel RX async resync request on rcd_delta overflowinclude/ net/ | +9 | 0 replies | Applied |
| 3/3 | net/mlx5e: kTLS, Cancel RX async resync request in error flowsdrivers/ drivers/ drivers/ | +37 | 0 replies | Applied |
Reviews trailers per patch
2 of 3 patches have a Reviewed-by or Acked-by.
| Patch | Sabrina Dubroca |
|---|---|
| 1/3 | R-b |
| 2/3 | R-b |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net V3 0/3] tls: Introduce and use RX async resync request cancel function
Hi,
This is V3. Find previous one here:
https://lore.kernel.org/all/[email protected]/
This series by Shahar introduces RX async resync request cancel function in tls module, and uses it in mlx5e driver.
For a device-offloaded TLS RX connection, the TLS module increments rcd_delta each time a new TLS record is received, tracking the distance from the original resync request. In the meanwhile, the device is queried and is expected to respond, asynchronously.
However, if the device response is delayed or fails (e.g due to unstable connection and device getting out of tracking, hardware errors, resource exhaustion etc.), the TLS module keeps logging and incrementing rcd_delta, which can lead to a WARN() when rcd_delta exceeds the threshold.
This series improves this code area by canceling the resync request when spotting an issue with the device response.
Regards,
Tariq
V3:
- Add review tags.
- Remove Fixes tag from preparation patches.
- Remove duplicated counter increase.
- Fix typo in rcd_delta.
Shahar Shitrit (3):
net: tls: Change async resync helpers argument
net: tls: Cancel RX async resync request on rcd_delta overflow net/mlx5e: kTLS, Cancel RX async resync request in error flows
.../mellanox/mlx5/core/en_accel/ktls_rx.c | 41 ++++++++++++++++--- .../mellanox/mlx5/core/en_accel/ktls_txrx.h | 4 ++ .../net/ethernet/mellanox/mlx5/core/en_rx.c | 4 ++ include/net/tls.h | 25 +++++------ net/tls/tls_device.c | 4 +- 5 files changed, 59 insertions(+), 19 deletions(-)
base-commit: 84a905290cb4c3d9a71a9e3b2f2e02e031e7512f
Signature · 1 line
2.31.1