HomeFreeBSD

mlx5en: Improve RX- and TX- TLS refcounting.

Description

mlx5en: Improve RX- and TX- TLS refcounting.

Use the send tag refcounting mechanism to refcount the RX- and TX- TLS
send tags. Then it is no longer needed to wait for refcounts to reach
zero when destroying RX- and TX- TLS send tags as a result of pending
data or WQE commands.

This also ensures that when TX-TLS and rate limiting is used at the same
time, the underlying SQ is not prematurely destroyed.

Sponsored by: NVIDIA Networking

(cherry picked from commit ebdb70064900a2ba2e3f8341328edc34e619170d)

Details

Provenance
hselaskyAuthored on Feb 24 2022, 9:59 AM
Parents
rGbafce48d55d8: mlx5en: Add missing refcount decrement on link-down.
Branches
Unknown
Tags
Unknown