Lines Matching full:qos
141 struct sparx5_port_qos qos = {0}; in sparx5_dcb_app_update() local
149 dscp_map = &qos.dscp.map; in sparx5_dcb_app_update()
150 pcp_map = &qos.pcp.map; in sparx5_dcb_app_update()
153 qos.default_prio = dcb_ieee_getapp_default_prio_mask(dev); in sparx5_dcb_app_update()
154 if (qos.default_prio) in sparx5_dcb_app_update()
155 qos.default_prio = fls(qos.default_prio) - 1; in sparx5_dcb_app_update()
177 qos.pcp_rewr.map.map[i] = fls(pcp_rewr_map.map[i]) - 1; in sparx5_dcb_app_update()
188 * not indicate DP level, so we map classified QoS class to in sparx5_dcb_app_update()
194 qos.dscp_rewr.map.map[i] = dscp; /* DP 0 */ in sparx5_dcb_app_update()
195 qos.dscp_rewr.map.map[i + 8] = dscp; /* DP 1 */ in sparx5_dcb_app_update()
196 qos.dscp_rewr.map.map[i + 16] = dscp; /* DP 2 */ in sparx5_dcb_app_update()
197 qos.dscp_rewr.map.map[i + 24] = dscp; /* DP 3 */ in sparx5_dcb_app_update()
202 qos.pcp.qos_enable = true; in sparx5_dcb_app_update()
203 qos.pcp.dp_enable = qos.pcp.qos_enable; in sparx5_dcb_app_update()
208 qos.pcp_rewr.enable = true; in sparx5_dcb_app_update()
213 qos.dscp.qos_enable = true; in sparx5_dcb_app_update()
214 qos.dscp.dp_enable = qos.dscp.qos_enable; in sparx5_dcb_app_update()
218 * QoS class and DP combinations. in sparx5_dcb_app_update()
220 qos.dscp_rewr.enable = true; in sparx5_dcb_app_update()
223 return sparx5_port_qos_set(port, &qos); in sparx5_dcb_app_update()
399 /* Enable DSCP classification based on classified QoS class and in sparx5_dcb_init()