Home
last modified time | relevance | path

Searched refs:lft (Results 1 – 10 of 10) sorted by relevance

/linux-6.1.9/net/key/
Daf_key.c886 lifetime->sadb_lifetime_allocations = _X2KEY(x->lft.hard_packet_limit); in __pfkey_xfrm_state2msg()
887 lifetime->sadb_lifetime_bytes = _X2KEY(x->lft.hard_byte_limit); in __pfkey_xfrm_state2msg()
888 lifetime->sadb_lifetime_addtime = x->lft.hard_add_expires_seconds; in __pfkey_xfrm_state2msg()
889 lifetime->sadb_lifetime_usetime = x->lft.hard_use_expires_seconds; in __pfkey_xfrm_state2msg()
897 lifetime->sadb_lifetime_allocations = _X2KEY(x->lft.soft_packet_limit); in __pfkey_xfrm_state2msg()
898 lifetime->sadb_lifetime_bytes = _X2KEY(x->lft.soft_byte_limit); in __pfkey_xfrm_state2msg()
899 lifetime->sadb_lifetime_addtime = x->lft.soft_add_expires_seconds; in __pfkey_xfrm_state2msg()
900 lifetime->sadb_lifetime_usetime = x->lft.soft_use_expires_seconds; in __pfkey_xfrm_state2msg()
1139 x->lft.hard_packet_limit = _KEY2X(lifetime->sadb_lifetime_allocations); in pfkey_msg2xfrm_state()
1140 x->lft.hard_byte_limit = _KEY2X(lifetime->sadb_lifetime_bytes); in pfkey_msg2xfrm_state()
[all …]
/linux-6.1.9/net/xfrm/
Dxfrm_state.c556 if (x->lft.hard_add_expires_seconds) { in xfrm_timer_handler()
557 long tmo = x->lft.hard_add_expires_seconds + in xfrm_timer_handler()
566 tmo = x->lft.hard_add_expires_seconds - x->saved_tmo; in xfrm_timer_handler()
573 if (x->lft.hard_use_expires_seconds) { in xfrm_timer_handler()
574 long tmo = x->lft.hard_use_expires_seconds + in xfrm_timer_handler()
583 if (x->lft.soft_add_expires_seconds) { in xfrm_timer_handler()
584 long tmo = x->lft.soft_add_expires_seconds + in xfrm_timer_handler()
595 if (x->lft.soft_use_expires_seconds) { in xfrm_timer_handler()
596 long tmo = x->lft.soft_use_expires_seconds + in xfrm_timer_handler()
651 x->lft.soft_byte_limit = XFRM_INF; in xfrm_state_alloc()
[all …]
Dxfrm_user.c590 memcpy(&x->lft, &p->lft, sizeof(x->lft)); in copy_from_user_state()
890 memcpy(&p->lft, &x->lft, sizeof(p->lft)); in copy_to_user_state()
1818 memcpy(&xp->lft, &p->lft, sizeof(xp->lft)); in copy_from_user_policy()
1829 memcpy(&p->lft, &xp->lft, sizeof(p->lft)); in copy_to_user_policy()
Dxfrm_compat.c24 struct compat_xfrm_lifetime_cfg lft; member
35 struct compat_xfrm_lifetime_cfg lft; member
Dxfrm_policy.c329 if (xp->lft.hard_add_expires_seconds) { in xfrm_policy_timer()
330 time64_t tmo = xp->lft.hard_add_expires_seconds + in xfrm_policy_timer()
337 if (xp->lft.hard_use_expires_seconds) { in xfrm_policy_timer()
338 time64_t tmo = xp->lft.hard_use_expires_seconds + in xfrm_policy_timer()
345 if (xp->lft.soft_add_expires_seconds) { in xfrm_policy_timer()
346 time64_t tmo = xp->lft.soft_add_expires_seconds + in xfrm_policy_timer()
355 if (xp->lft.soft_use_expires_seconds) { in xfrm_policy_timer()
356 time64_t tmo = xp->lft.soft_use_expires_seconds + in xfrm_policy_timer()
2303 newp->lft = old->lft; in clone_policy()
/linux-6.1.9/tools/testing/selftests/net/
Dipsec.c946 req.info.lft.soft_byte_limit = XFRM_INF; in xfrm_state_add()
947 req.info.lft.hard_byte_limit = XFRM_INF; in xfrm_state_add()
948 req.info.lft.soft_packet_limit = XFRM_INF; in xfrm_state_add()
949 req.info.lft.hard_packet_limit = XFRM_INF; in xfrm_state_add()
989 if (info->lft.soft_byte_limit != XFRM_INF || in xfrm_usersa_found()
990 info->lft.hard_byte_limit != XFRM_INF || in xfrm_usersa_found()
991 info->lft.soft_packet_limit != XFRM_INF || in xfrm_usersa_found()
992 info->lft.hard_packet_limit != XFRM_INF) in xfrm_usersa_found()
1122 req.info.lft.soft_byte_limit = XFRM_INF; in xfrm_policy_add()
1123 req.info.lft.hard_byte_limit = XFRM_INF; in xfrm_policy_add()
[all …]
Drtnetlink.sh254 lft=$(((RANDOM%3) + 1))
255 ip addr add 10.23.11.$i/32 dev "$devdummy" preferred_lft $lft valid_lft $((lft+1))
/linux-6.1.9/include/uapi/linux/
Dxfrm.h376 struct xfrm_lifetime_cfg lft; member
420 struct xfrm_lifetime_cfg lft; member
/linux-6.1.9/include/net/
Dxfrm.h199 struct xfrm_lifetime_cfg lft; member
523 struct xfrm_lifetime_cfg lft; member
/linux-6.1.9/drivers/scsi/lpfc/
Dlpfc_els.c4122 struct fc_diag_lnkflt_desc *lft = (struct fc_diag_lnkflt_desc *)tlv; in lpfc_format_edc_lft_desc() local
4124 lft->desc_tag = cpu_to_be32(ELS_DTAG_LNK_FAULT_CAP); in lpfc_format_edc_lft_desc()
4125 lft->desc_len = cpu_to_be32( in lpfc_format_edc_lft_desc()
4128 lft->degrade_activate_threshold = in lpfc_format_edc_lft_desc()
4130 lft->degrade_deactivate_threshold = in lpfc_format_edc_lft_desc()
4132 lft->fec_degrade_interval = cpu_to_be32(phba->fec_degrade_interval); in lpfc_format_edc_lft_desc()