• Huy Nguyen's avatar
    net/mlx5e: IPsec: Add IPsec steering in local NIC RX · 5e466345
    Huy Nguyen authored
    Introduce decrypt FT, the RX error FT and the default rules.
    
    The IPsec RX decrypt flow table is pointed by the TTC
    (Traffic Type Classifier) ESP steering rules.
    The decrypt flow table has two flow groups. The first flow group
    keeps the decrypt steering rule programmed via the "ip xfrm s" interface.
    The second flow group has a default rule to forward all non-offloaded
    ESP packet to the TTC ESP default RSS TIR.
    
    The RX error flow table is the destination of the decrypt steering rules
    in the IPsec RX decrypt flow table. It has a fixed rule with single
    copy action that copies ipsec_syndrome to metadata_regB[0:6]. The IPsec
    syndrome is used to filter out non-ipsec packet and to return the IPsec
    crypto offload status in Rx flow. The destination of RX error flow table
    is the TTC ESP default RSS TIR.
    
    All the FTs (decrypt FT and error FT) are created only when IPsec SAs
    are added. If there is no IPsec SAs, the FTs are removed.
    Signed-off-by: default avatarHuy Nguyen <huyn@mellanox.com>
    Reviewed-by: default avatarBoris Pismenny <borisp@mellanox.com>
    Reviewed-by: default avatarTariq Toukan <tariqt@mellanox.com>
    Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
    5e466345
ipsec.h 3.98 KB