mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-24 23:52:40 +00:00
net/tls: generalize the resync callback
Currently only RX direction is ever resynced, however, TX may also get out of sequence if packets get dropped on the way to the driver. Rename the resync callback and add a direction parameter. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c0a4948e1d
commit
eeb2efaf36
4 changed files with 18 additions and 10 deletions
|
@ -559,7 +559,8 @@ static void tls_device_resync_rx(struct tls_context *tls_ctx,
|
|||
return;
|
||||
netdev = READ_ONCE(tls_ctx->netdev);
|
||||
if (netdev)
|
||||
netdev->tlsdev_ops->tls_dev_resync_rx(netdev, sk, seq, rcd_sn);
|
||||
netdev->tlsdev_ops->tls_dev_resync(netdev, sk, seq, rcd_sn,
|
||||
TLS_OFFLOAD_CTX_DIR_RX);
|
||||
clear_bit_unlock(TLS_RX_SYNC_RUNNING, &tls_ctx->flags);
|
||||
}
|
||||
|
||||
|
@ -1105,7 +1106,7 @@ static int tls_dev_event(struct notifier_block *this, unsigned long event,
|
|||
case NETDEV_REGISTER:
|
||||
case NETDEV_FEAT_CHANGE:
|
||||
if ((dev->features & NETIF_F_HW_TLS_RX) &&
|
||||
!dev->tlsdev_ops->tls_dev_resync_rx)
|
||||
!dev->tlsdev_ops->tls_dev_resync)
|
||||
return NOTIFY_BAD;
|
||||
|
||||
if (dev->tlsdev_ops &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue