net/cnxk: handle SA soft packet and byte expiry events
Handle SA soft packet and byte expiry event for Inline outbound SA. Signed-off-by: Vamsi Attunuru <vattunuru@marvell.com>
This commit is contained in:
parent
d7bde0454c
commit
3d7a584430
@ -428,7 +428,12 @@ cn10k_eth_sec_sso_work_cb(uint64_t *gw, void *args, uint32_t soft_exp_event)
|
||||
sa = (struct roc_ot_ipsec_outb_sa *)args;
|
||||
priv = roc_nix_inl_ot_ipsec_outb_sa_sw_rsvd(sa);
|
||||
desc.metadata = (uint64_t)priv->userdata;
|
||||
desc.subtype = RTE_ETH_EVENT_IPSEC_SA_TIME_EXPIRY;
|
||||
if (sa->w2.s.life_unit == ROC_IE_OT_SA_LIFE_UNIT_PKTS)
|
||||
desc.subtype =
|
||||
RTE_ETH_EVENT_IPSEC_SA_PKT_EXPIRY;
|
||||
else
|
||||
desc.subtype =
|
||||
RTE_ETH_EVENT_IPSEC_SA_BYTE_EXPIRY;
|
||||
eth_dev = &rte_eth_devices[soft_exp_event >> 8];
|
||||
rte_eth_dev_callback_process(eth_dev,
|
||||
RTE_ETH_EVENT_IPSEC, &desc);
|
||||
|
Loading…
Reference in New Issue
Block a user