• Rohit Maheshwari's avatar
    chcr: handle partial end part of a record · 429765a1
    Rohit Maheshwari authored
    TCP segment can chop a record in any order. Record can either be
    complete or it can be partial (first part which contains header,
    middle part which doesn't have header or TAG, and the end part
    which contains TAG. This patch handles partial end part of a tx
    record. In case of partial end part's, driver will send complete
    record to HW, so that HW will calculate GHASH (TAG) of complete
    packet.
    Also added support to handle multiple records in a segment.
    
    v1->v2:
    - miner change in calling chcr_write_cpl_set_tcb_ulp.
    - no need of checking return value of chcr_ktls_write_tcp_options.
    
    v3->v4:
    - replaced kfree_skb with dev_kfree_skb_any.
    Signed-off-by: default avatarRohit Maheshwari <rohitm@chelsio.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    429765a1
chcr_ktls.c 38.4 KB