Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dipsec.c158 attrs->lft.hard_packet_limit = x->lft.hard_packet_limit; in mlx5e_ipsec_init_limits()
159 attrs->lft.soft_packet_limit = x->lft.soft_packet_limit; in mlx5e_ipsec_init_limits()
160 if (x->lft.soft_packet_limit == XFRM_INF) in mlx5e_ipsec_init_limits()
207 attrs->lft.numb_rounds_hard = (u64)n; in mlx5e_ipsec_init_limits()
231 n = (x->lft.soft_packet_limit - attrs->lft.hard_packet_limit) / BIT_ULL(31); in mlx5e_ipsec_init_limits()
233 x->lft.soft_packet_limit; in mlx5e_ipsec_init_limits()
262 attrs->lft.numb_rounds_soft = (u64)n; in mlx5e_ipsec_init_limits()
529 if (x->lft.hard_byte_limit != XFRM_INF || in mlx5e_xfrm_validate_state()
535 if (x->lft.soft_packet_limit >= x->lft.hard_packet_limit && in mlx5e_xfrm_validate_state()
542 if (!x->lft.soft_packet_limit || !x->lft.hard_packet_limit) { in mlx5e_xfrm_validate_state()
[all …]
H A Dipsec_offload.c125 if (attrs->lft.hard_packet_limit != XFRM_INF) { in mlx5e_ipsec_packet_setup()
127 attrs->lft.hard_packet_limit); in mlx5e_ipsec_packet_setup()
131 if (attrs->lft.soft_packet_limit != XFRM_INF) { in mlx5e_ipsec_packet_setup()
133 attrs->lft.soft_packet_limit); in mlx5e_ipsec_packet_setup()
398 sa_entry->limits.round == attrs->lft.numb_rounds_soft) { in mlx5e_ipsec_handle_limits()
403 if (sa_entry->limits.round == attrs->lft.numb_rounds_hard) in mlx5e_ipsec_handle_limits()
406 if (attrs->lft.soft_packet_limit > BIT_ULL(31)) { in mlx5e_ipsec_handle_limits()
430 attrs->lft.soft_packet_limit = XFRM_INF; in mlx5e_ipsec_handle_limits()
436 if (sa_entry->limits.round == attrs->lft.numb_rounds_soft) in mlx5e_ipsec_handle_limits()
438 attrs->lft.soft_packet_limit); in mlx5e_ipsec_handle_limits()
[all …]
H A Dipsec.h102 struct mlx5_ipsec_lft lft; member
/openbmc/linux/net/key/
H A Daf_key.c887 lifetime->sadb_lifetime_bytes = _X2KEY(x->lft.hard_byte_limit); in __pfkey_xfrm_state2msg()
898 lifetime->sadb_lifetime_bytes = _X2KEY(x->lft.soft_byte_limit); in __pfkey_xfrm_state2msg()
1140 x->lft.hard_byte_limit = _KEY2X(lifetime->sadb_lifetime_bytes); in pfkey_msg2xfrm_state()
2313 xp->lft.soft_byte_limit = XFRM_INF; in pfkey_spdadd()
2314 xp->lft.hard_byte_limit = XFRM_INF; in pfkey_spdadd()
2315 xp->lft.soft_packet_limit = XFRM_INF; in pfkey_spdadd()
2316 xp->lft.hard_packet_limit = XFRM_INF; in pfkey_spdadd()
3310 xp->lft.soft_byte_limit = XFRM_INF; in pfkey_compile_policy()
3311 xp->lft.hard_byte_limit = XFRM_INF; in pfkey_compile_policy()
3312 xp->lft.soft_packet_limit = XFRM_INF; in pfkey_compile_policy()
[all …]
/openbmc/linux/net/xfrm/
H A Dxfrm_state.c581 if (x->lft.hard_add_expires_seconds) { in xfrm_timer_handler()
582 time64_t tmo = x->lft.hard_add_expires_seconds + in xfrm_timer_handler()
598 if (x->lft.hard_use_expires_seconds) { in xfrm_timer_handler()
608 if (x->lft.soft_add_expires_seconds) { in xfrm_timer_handler()
620 if (x->lft.soft_use_expires_seconds) { in xfrm_timer_handler()
676 x->lft.soft_byte_limit = XFRM_INF; in xfrm_state_alloc()
677 x->lft.soft_packet_limit = XFRM_INF; in xfrm_state_alloc()
678 x->lft.hard_byte_limit = XFRM_INF; in xfrm_state_alloc()
679 x->lft.hard_packet_limit = XFRM_INF; in xfrm_state_alloc()
1723 memcpy(&x->lft, &orig->lft, sizeof(x->lft)); in xfrm_state_clone()
[all …]
H A Dxfrm_user.c607 memcpy(&x->lft, &p->lft, sizeof(x->lft)); in copy_from_user_state()
907 memcpy(&p->lft, &x->lft, sizeof(p->lft)); in copy_to_user_state()
1901 memcpy(&xp->lft, &p->lft, sizeof(xp->lft)); in copy_from_user_policy()
1912 memcpy(&p->lft, &xp->lft, sizeof(p->lft)); in copy_to_user_policy()
H A Dxfrm_compat.c25 struct compat_xfrm_lifetime_cfg lft; member
36 struct compat_xfrm_lifetime_cfg lft; member
H A Dxfrm_policy.c350 if (xp->lft.hard_add_expires_seconds) { in xfrm_policy_timer()
351 time64_t tmo = xp->lft.hard_add_expires_seconds + in xfrm_policy_timer()
358 if (xp->lft.hard_use_expires_seconds) { in xfrm_policy_timer()
359 time64_t tmo = xp->lft.hard_use_expires_seconds + in xfrm_policy_timer()
366 if (xp->lft.soft_add_expires_seconds) { in xfrm_policy_timer()
367 time64_t tmo = xp->lft.soft_add_expires_seconds + in xfrm_policy_timer()
376 if (xp->lft.soft_use_expires_seconds) { in xfrm_policy_timer()
377 time64_t tmo = xp->lft.soft_use_expires_seconds + in xfrm_policy_timer()
2405 newp->lft = old->lft; in clone_policy()
/openbmc/linux/tools/testing/selftests/net/
H A 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()
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()
1124 req.info.lft.soft_packet_limit = XFRM_INF; in xfrm_policy_add()
[all …]
H A Drtnetlink.sh280 lft=$(((RANDOM%3) + 1))
281 ip addr add 10.23.11.$i/32 dev "$devdummy" preferred_lft $lft valid_lft $((lft+1))
/openbmc/linux/include/uapi/linux/
H A Dxfrm.h376 struct xfrm_lifetime_cfg lft; member
420 struct xfrm_lifetime_cfg lft; member
/openbmc/linux/Documentation/netlink/specs/
H A Drt_link.yaml419 name: temp-valid-lft
422 name: temp-prefered-lft
/openbmc/linux/include/net/
H A Dxfrm.h215 struct xfrm_lifetime_cfg lft; member
544 struct xfrm_lifetime_cfg lft; member
/openbmc/linux/drivers/scsi/lpfc/
H A Dlpfc_els.c4170 struct fc_diag_lnkflt_desc *lft = (struct fc_diag_lnkflt_desc *)tlv; in lpfc_format_edc_lft_desc() local
4172 lft->desc_tag = cpu_to_be32(ELS_DTAG_LNK_FAULT_CAP); in lpfc_format_edc_lft_desc()
4173 lft->desc_len = cpu_to_be32( in lpfc_format_edc_lft_desc()
4176 lft->degrade_activate_threshold = in lpfc_format_edc_lft_desc()
4178 lft->degrade_deactivate_threshold = in lpfc_format_edc_lft_desc()
4180 lft->fec_degrade_interval = cpu_to_be32(phba->fec_degrade_interval); in lpfc_format_edc_lft_desc()