Searched refs:lft (Results 1 - 13 of 13) sorted by relevance

/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dipsec.c152 attrs->lft.hard_packet_limit = x->lft.hard_packet_limit;
153 attrs->lft.soft_packet_limit = x->lft.soft_packet_limit;
154 if (x->lft.soft_packet_limit == XFRM_INF)
187 n = attrs->lft.hard_packet_limit / BIT_ULL(31);
188 start_value = attrs->lft.hard_packet_limit - n * BIT_ULL(31);
195 start_value = attrs->lft.hard_packet_limit - n * BIT_ULL(31);
200 attrs->lft.hard_packet_limit = lower_32_bits(start_value);
201 attrs->lft
[all...]
H A Dipsec_offload.c125 if (attrs->lft.hard_packet_limit != XFRM_INF) {
127 attrs->lft.hard_packet_limit);
131 if (attrs->lft.soft_packet_limit != XFRM_INF) {
133 attrs->lft.soft_packet_limit);
398 sa_entry->limits.round == attrs->lft.numb_rounds_soft) {
403 if (sa_entry->limits.round == attrs->lft.numb_rounds_hard)
406 if (attrs->lft.soft_packet_limit > BIT_ULL(31)) {
428 if (sa_entry->limits.round == attrs->lft.numb_rounds_hard) {
430 attrs->lft.soft_packet_limit = XFRM_INF;
436 if (sa_entry->limits.round == attrs->lft
[all...]
H A Dipsec.h103 struct mlx5_ipsec_lft lft; member in struct:mlx5_accel_esp_xfrm_attrs
/linux-master/net/key/
H A Daf_key.c886 lifetime->sadb_lifetime_allocations = _X2KEY(x->lft.hard_packet_limit);
887 lifetime->sadb_lifetime_bytes = _X2KEY(x->lft.hard_byte_limit);
888 lifetime->sadb_lifetime_addtime = x->lft.hard_add_expires_seconds;
889 lifetime->sadb_lifetime_usetime = x->lft.hard_use_expires_seconds;
897 lifetime->sadb_lifetime_allocations = _X2KEY(x->lft.soft_packet_limit);
898 lifetime->sadb_lifetime_bytes = _X2KEY(x->lft.soft_byte_limit);
899 lifetime->sadb_lifetime_addtime = x->lft.soft_add_expires_seconds;
900 lifetime->sadb_lifetime_usetime = x->lft.soft_use_expires_seconds;
1139 x->lft.hard_packet_limit = _KEY2X(lifetime->sadb_lifetime_allocations);
1140 x->lft
[all...]
/linux-master/net/xfrm/
H A Dxfrm_state.c579 if (x->lft.hard_add_expires_seconds) {
580 time64_t tmo = x->lft.hard_add_expires_seconds +
589 tmo = x->lft.hard_add_expires_seconds - x->saved_tmo;
596 if (x->lft.hard_use_expires_seconds) {
597 time64_t tmo = x->lft.hard_use_expires_seconds +
606 if (x->lft.soft_add_expires_seconds) {
607 time64_t tmo = x->lft.soft_add_expires_seconds +
618 if (x->lft.soft_use_expires_seconds) {
619 time64_t tmo = x->lft.soft_use_expires_seconds +
674 x->lft
[all...]
H A Dxfrm_compat.c25 struct compat_xfrm_lifetime_cfg lft; member in struct:compat_xfrm_userpolicy_info
36 struct compat_xfrm_lifetime_cfg lft; member in struct:compat_xfrm_usersa_info
H A Dxfrm_user.c603 memcpy(&x->lft, &p->lft, sizeof(x->lft));
903 memcpy(&p->lft, &x->lft, sizeof(p->lft));
1895 memcpy(&xp->lft, &p->lft, sizeof(xp->lft));
1906 memcpy(&p->lft,
[all...]
H A Dxfrm_policy.c345 if (xp->lft.hard_add_expires_seconds) {
346 time64_t tmo = xp->lft.hard_add_expires_seconds +
353 if (xp->lft.hard_use_expires_seconds) {
354 time64_t tmo = xp->lft.hard_use_expires_seconds +
361 if (xp->lft.soft_add_expires_seconds) {
362 time64_t tmo = xp->lft.soft_add_expires_seconds +
371 if (xp->lft.soft_use_expires_seconds) {
372 time64_t tmo = xp->lft.soft_use_expires_seconds +
2401 newp->lft = old->lft;
[all...]
/linux-master/include/uapi/linux/
H A Dxfrm.h377 struct xfrm_lifetime_cfg lft; member in struct:xfrm_usersa_info
421 struct xfrm_lifetime_cfg lft; member in struct:xfrm_userpolicy_info
/linux-master/tools/testing/selftests/net/
H A Dipsec.c946 req.info.lft.soft_byte_limit = XFRM_INF;
947 req.info.lft.hard_byte_limit = XFRM_INF;
948 req.info.lft.soft_packet_limit = XFRM_INF;
949 req.info.lft.hard_packet_limit = XFRM_INF;
989 if (info->lft.soft_byte_limit != XFRM_INF ||
990 info->lft.hard_byte_limit != XFRM_INF ||
991 info->lft.soft_packet_limit != XFRM_INF ||
992 info->lft.hard_packet_limit != XFRM_INF)
1122 req.info.lft.soft_byte_limit = XFRM_INF;
1123 req.info.lft
[all...]
H A Drtnetlink.sh295 lft=$(((RANDOM%3) + 1))
296 run_cmd ip addr add 10.23.11.$i/32 dev "$devdummy" preferred_lft $lft valid_lft $((lft+1))
/linux-master/include/net/
H A Dxfrm.h214 struct xfrm_lifetime_cfg lft; member in struct:xfrm_state
538 struct xfrm_lifetime_cfg lft; member in struct:xfrm_policy
/linux-master/drivers/scsi/lpfc/
H A Dlpfc_els.c4177 struct fc_diag_lnkflt_desc *lft = (struct fc_diag_lnkflt_desc *)tlv; local
4179 lft->desc_tag = cpu_to_be32(ELS_DTAG_LNK_FAULT_CAP);
4180 lft->desc_len = cpu_to_be32(
4183 lft->degrade_activate_threshold =
4185 lft->degrade_deactivate_threshold =
4187 lft->fec_degrade_interval = cpu_to_be32(phba->fec_degrade_interval);

Completed in 254 milliseconds