crypto/cnxk: support TTL or hop limit decrement
Add support for TTL if IPv4 or hop limit if IPv6 decrement for cn10k. Signed-off-by: Volodymyr Fialko <vfialko@marvell.com> Acked-by: Anoob Joseph <anoobj@marvell.com>
This commit is contained in:
parent
3387912f5c
commit
521fbc716e
@ -102,6 +102,8 @@ cn10k_ipsec_outb_sa_create(struct roc_cpt *roc_cpt, struct roc_cpt_lf *lf,
|
||||
|
||||
param1.u16 = 0;
|
||||
|
||||
param1.s.ttl_or_hop_limit = ipsec_xfrm->options.dec_ttl;
|
||||
|
||||
/* Disable IP checksum computation by default */
|
||||
param1.s.ip_csum_disable = ROC_IE_OT_SA_INNER_PKT_IP_CSUM_DISABLE;
|
||||
|
||||
|
@ -1159,6 +1159,7 @@ cn10k_sec_caps_update(struct rte_security_capability *sec_cap)
|
||||
sec_cap->ipsec.options.tunnel_hdr_verify =
|
||||
RTE_SECURITY_IPSEC_TUNNEL_VERIFY_SRC_DST_ADDR;
|
||||
}
|
||||
sec_cap->ipsec.options.dec_ttl = 1;
|
||||
sec_cap->ipsec.options.ip_csum_enable = 1;
|
||||
sec_cap->ipsec.options.l4_csum_enable = 1;
|
||||
sec_cap->ipsec.options.stats = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user