Lines Matching refs:l2params
63 static void irdma_fill_qos_info(struct irdma_l2params *l2params, in irdma_fill_qos_info() argument
68 l2params->num_tc = qos_info->num_tc; in irdma_fill_qos_info()
69 l2params->vsi_prio_type = qos_info->vport_priority_type; in irdma_fill_qos_info()
70 l2params->vsi_rel_bw = qos_info->vport_relative_bw; in irdma_fill_qos_info()
71 for (i = 0; i < l2params->num_tc; i++) { in irdma_fill_qos_info()
72 l2params->tc_info[i].egress_virt_up = in irdma_fill_qos_info()
74 l2params->tc_info[i].ingress_virt_up = in irdma_fill_qos_info()
76 l2params->tc_info[i].prio_type = qos_info->tc_info[i].prio_type; in irdma_fill_qos_info()
77 l2params->tc_info[i].rel_bw = qos_info->tc_info[i].rel_bw; in irdma_fill_qos_info()
78 l2params->tc_info[i].tc_ctx = qos_info->tc_info[i].tc_ctx; in irdma_fill_qos_info()
81 l2params->up2tc[i] = qos_info->up2tc[i]; in irdma_fill_qos_info()
83 l2params->dscp_mode = true; in irdma_fill_qos_info()
84 memcpy(l2params->dscp_map, qos_info->dscp_map, sizeof(l2params->dscp_map)); in irdma_fill_qos_info()
91 struct irdma_l2params l2params = {}; in irdma_iidc_event_handler() local
96 l2params.mtu = iwdev->netdev->mtu; in irdma_iidc_event_handler()
97 l2params.mtu_changed = true; in irdma_iidc_event_handler()
98 irdma_log_invalid_mtu(l2params.mtu, &iwdev->rf->sc_dev); in irdma_iidc_event_handler()
99 irdma_change_l2params(&iwdev->vsi, &l2params); in irdma_iidc_event_handler()
112 l2params.tc_changed = true; in irdma_iidc_event_handler()
115 irdma_fill_qos_info(&l2params, &qos_info); in irdma_iidc_event_handler()
117 iwdev->dcb_vlan_mode = qos_info.num_tc > 1 && !l2params.dscp_mode; in irdma_iidc_event_handler()
118 irdma_change_l2params(&iwdev->vsi, &l2params); in irdma_iidc_event_handler()
267 struct irdma_l2params l2params = {}; in irdma_probe() local
288 l2params.mtu = iwdev->netdev->mtu; in irdma_probe()
290 irdma_fill_qos_info(&l2params, &qos_info); in irdma_probe()
292 iwdev->dcb_vlan_mode = l2params.num_tc > 1 && !l2params.dscp_mode; in irdma_probe()
294 err = irdma_rt_init_hw(iwdev, &l2params); in irdma_probe()