• Jakub Kicinski's avatar
    tls: rx: return the decrypted skb via darg · 6bd116c8
    Jakub Kicinski authored
    Instead of using ctx->recv_pkt after decryption read the skb
    from darg.skb. This moves the decision of what the "output skb"
    is to the decrypt handlers. For now after decrypt handler returns
    successfully ctx->recv_pkt is simply moved to darg.skb, but it
    will change soon.
    
    Note that tls_decrypt_sg() cannot clear the ctx->recv_pkt
    because it gets called to re-encrypt (i.e. by the device offload).
    So we need an awkward temporary if() in tls_rx_one_record().
    Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    6bd116c8
tls_sw.c 67 KB