Searched refs:hdroom (Results 1 – 8 of 8) sorted by relevance
/Linux-v5.10/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_buffers.c | 303 void mlxsw_sp_hdroom_prios_reset_buf_idx(struct mlxsw_sp_hdroom *hdroom) in mlxsw_sp_hdroom_prios_reset_buf_idx() argument 308 switch (hdroom->mode) { in mlxsw_sp_hdroom_prios_reset_buf_idx() 310 hdroom->prios.prio[prio].buf_idx = hdroom->prios.prio[prio].ets_buf_idx; in mlxsw_sp_hdroom_prios_reset_buf_idx() 313 hdroom->prios.prio[prio].buf_idx = hdroom->prios.prio[prio].set_buf_idx; in mlxsw_sp_hdroom_prios_reset_buf_idx() 319 void mlxsw_sp_hdroom_bufs_reset_lossiness(struct mlxsw_sp_hdroom *hdroom) in mlxsw_sp_hdroom_bufs_reset_lossiness() argument 325 hdroom->bufs.buf[i].lossy = true; in mlxsw_sp_hdroom_bufs_reset_lossiness() 328 if (!hdroom->prios.prio[prio].lossy) in mlxsw_sp_hdroom_bufs_reset_lossiness() 329 hdroom->bufs.buf[hdroom->prios.prio[prio].buf_idx].lossy = false; in mlxsw_sp_hdroom_bufs_reset_lossiness() 348 const struct mlxsw_sp_hdroom *hdroom) in mlxsw_sp_hdroom_buf_delay_get() argument 352 delay_cells = mlxsw_sp_bytes_cells(mlxsw_sp, hdroom->delay_bytes); in mlxsw_sp_hdroom_buf_delay_get() [all …]
|
D | spectrum_dcb.c | 71 struct mlxsw_sp_hdroom hdroom; in mlxsw_sp_port_headroom_ets_set() local 75 hdroom = *mlxsw_sp_port->hdroom; in mlxsw_sp_port_headroom_ets_set() 77 hdroom.prios.prio[prio].ets_buf_idx = ets->prio_tc[prio]; in mlxsw_sp_port_headroom_ets_set() 78 mlxsw_sp_hdroom_prios_reset_buf_idx(&hdroom); in mlxsw_sp_port_headroom_ets_set() 79 mlxsw_sp_hdroom_bufs_reset_lossiness(&hdroom); in mlxsw_sp_port_headroom_ets_set() 80 mlxsw_sp_hdroom_bufs_reset_sizes(mlxsw_sp_port, &hdroom); in mlxsw_sp_port_headroom_ets_set() 82 err = mlxsw_sp_hdroom_configure(mlxsw_sp_port, &hdroom); in mlxsw_sp_port_headroom_ets_set() 550 struct mlxsw_sp_hdroom hdroom; in mlxsw_sp_dcbnl_ieee_setpfc() local 559 orig_hdroom = *mlxsw_sp_port->hdroom; in mlxsw_sp_dcbnl_ieee_setpfc() 561 hdroom = orig_hdroom; in mlxsw_sp_dcbnl_ieee_setpfc() [all …]
|
D | spectrum_qdisc.c | 151 struct mlxsw_sp_hdroom hdroom = *mlxsw_sp_port->hdroom; in mlxsw_sp_qdisc_destroy() local 153 hdroom.mode = MLXSW_SP_HDROOM_MODE_DCB; in mlxsw_sp_qdisc_destroy() 154 mlxsw_sp_hdroom_prios_reset_buf_idx(&hdroom); in mlxsw_sp_qdisc_destroy() 155 mlxsw_sp_hdroom_bufs_reset_lossiness(&hdroom); in mlxsw_sp_qdisc_destroy() 156 mlxsw_sp_hdroom_bufs_reset_sizes(mlxsw_sp_port, &hdroom); in mlxsw_sp_qdisc_destroy() 157 err_hdroom = mlxsw_sp_hdroom_configure(mlxsw_sp_port, &hdroom); in mlxsw_sp_qdisc_destroy() 187 orig_hdroom = *mlxsw_sp_port->hdroom; in mlxsw_sp_qdisc_replace() 189 struct mlxsw_sp_hdroom hdroom = orig_hdroom; in mlxsw_sp_qdisc_replace() local 191 hdroom.mode = MLXSW_SP_HDROOM_MODE_TC; in mlxsw_sp_qdisc_replace() 192 mlxsw_sp_hdroom_prios_reset_buf_idx(&hdroom); in mlxsw_sp_qdisc_replace() [all …]
|
D | spectrum_ethtool.c | 207 struct mlxsw_sp_hdroom hdroom; in mlxsw_sp_port_set_pauseparam() local 221 orig_hdroom = *mlxsw_sp_port->hdroom; in mlxsw_sp_port_set_pauseparam() 223 hdroom = orig_hdroom; in mlxsw_sp_port_set_pauseparam() 225 hdroom.delay_bytes = MLXSW_SP_PAUSE_DELAY_BYTES; in mlxsw_sp_port_set_pauseparam() 227 hdroom.delay_bytes = 0; in mlxsw_sp_port_set_pauseparam() 230 hdroom.prios.prio[prio].lossy = !pause_en; in mlxsw_sp_port_set_pauseparam() 232 mlxsw_sp_hdroom_bufs_reset_lossiness(&hdroom); in mlxsw_sp_port_set_pauseparam() 233 mlxsw_sp_hdroom_bufs_reset_sizes(mlxsw_sp_port, &hdroom); in mlxsw_sp_port_set_pauseparam() 235 err = mlxsw_sp_hdroom_configure(mlxsw_sp_port, &hdroom); in mlxsw_sp_port_set_pauseparam()
|
D | spectrum.h | 321 struct mlxsw_sp_hdroom *hdroom; member 522 void mlxsw_sp_hdroom_prios_reset_buf_idx(struct mlxsw_sp_hdroom *hdroom); 523 void mlxsw_sp_hdroom_bufs_reset_lossiness(struct mlxsw_sp_hdroom *hdroom); 525 struct mlxsw_sp_hdroom *hdroom); 527 const struct mlxsw_sp_hdroom *hdroom);
|
D | spectrum_span.c | 973 struct mlxsw_sp_hdroom hdroom; in mlxsw_sp_span_port_buffer_update() local 975 hdroom = *mlxsw_sp_port->hdroom; in mlxsw_sp_span_port_buffer_update() 976 hdroom.int_buf.enable = enable; in mlxsw_sp_span_port_buffer_update() 977 mlxsw_sp_hdroom_bufs_reset_sizes(mlxsw_sp_port, &hdroom); in mlxsw_sp_span_port_buffer_update() 979 return mlxsw_sp_hdroom_configure(mlxsw_sp_port, &hdroom); in mlxsw_sp_span_port_buffer_update()
|
D | spectrum.c | 617 struct mlxsw_sp_hdroom hdroom; in mlxsw_sp_port_change_mtu() local 620 orig_hdroom = *mlxsw_sp_port->hdroom; in mlxsw_sp_port_change_mtu() 622 hdroom = orig_hdroom; in mlxsw_sp_port_change_mtu() 623 hdroom.mtu = mtu; in mlxsw_sp_port_change_mtu() 624 mlxsw_sp_hdroom_bufs_reset_sizes(mlxsw_sp_port, &hdroom); in mlxsw_sp_port_change_mtu() 626 err = mlxsw_sp_hdroom_configure(mlxsw_sp_port, &hdroom); in mlxsw_sp_port_change_mtu()
|
/Linux-v5.10/drivers/net/hyperv/ |
D | netvsc_drv.c | 827 unsigned int hdroom = xdp->data - xdp->data_hard_start; in netvsc_alloc_recv_skb() local 838 skb_reserve(skb, hdroom); in netvsc_alloc_recv_skb()
|