Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/infiniband/hw/hfi1/
Dmad.c3737 struct cc_state *old_cc_state, *new_cc_state; in apply_cc_state() local
3739 new_cc_state = kzalloc(sizeof(*new_cc_state), GFP_KERNEL); in apply_cc_state()
3740 if (!new_cc_state) in apply_cc_state()
3753 kfree(new_cc_state); in apply_cc_state()
3757 *new_cc_state = *old_cc_state; in apply_cc_state()
3760 new_cc_state->cct.ccti_limit = ppd->total_cct_entry - 1; in apply_cc_state()
3762 new_cc_state->cct.ccti_limit = 0; in apply_cc_state()
3764 memcpy(new_cc_state->cct.entries, ppd->ccti_entries, in apply_cc_state()
3767 new_cc_state->cong_setting.port_control = IB_CC_CCS_PC_SL_BASED; in apply_cc_state()
3768 new_cc_state->cong_setting.control_map = ppd->cc_sl_control_map; in apply_cc_state()
[all …]