Searched refs:hdroom (Results 1 – 8 of 8) sorted by relevance
/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_buffers.c | 318 void mlxsw_sp_hdroom_prios_reset_buf_idx(struct mlxsw_sp_hdroom *hdroom) in mlxsw_sp_hdroom_prios_reset_buf_idx() argument 323 switch (hdroom->mode) { in mlxsw_sp_hdroom_prios_reset_buf_idx() 325 hdroom->prios.prio[prio].buf_idx = hdroom->prios.prio[prio].ets_buf_idx; in mlxsw_sp_hdroom_prios_reset_buf_idx() 328 hdroom->prios.prio[prio].buf_idx = hdroom->prios.prio[prio].set_buf_idx; in mlxsw_sp_hdroom_prios_reset_buf_idx() 334 void mlxsw_sp_hdroom_bufs_reset_lossiness(struct mlxsw_sp_hdroom *hdroom) in mlxsw_sp_hdroom_bufs_reset_lossiness() argument 340 hdroom->bufs.buf[i].lossy = true; in mlxsw_sp_hdroom_bufs_reset_lossiness() 343 if (!hdroom->prios.prio[prio].lossy) in mlxsw_sp_hdroom_bufs_reset_lossiness() 344 hdroom->bufs.buf[hdroom->prios.prio[prio].buf_idx].lossy = false; in mlxsw_sp_hdroom_bufs_reset_lossiness() 363 const struct mlxsw_sp_hdroom *hdroom) in mlxsw_sp_hdroom_buf_delay_get() argument 367 delay_cells = mlxsw_sp_bytes_cells(mlxsw_sp, hdroom->delay_bytes); in mlxsw_sp_hdroom_buf_delay_get() [all …]
|
H A 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() 537 struct mlxsw_sp_hdroom hdroom; in mlxsw_sp_dcbnl_ieee_setpfc() local 546 orig_hdroom = *mlxsw_sp_port->hdroom; in mlxsw_sp_dcbnl_ieee_setpfc() 548 hdroom = orig_hdroom; in mlxsw_sp_dcbnl_ieee_setpfc() [all …]
|
H A D | spectrum_qdisc.c | 242 struct mlxsw_sp_hdroom hdroom = *mlxsw_sp_port->hdroom; in mlxsw_sp_qdisc_destroy() local 244 hdroom.mode = MLXSW_SP_HDROOM_MODE_DCB; in mlxsw_sp_qdisc_destroy() 245 mlxsw_sp_hdroom_prios_reset_buf_idx(&hdroom); in mlxsw_sp_qdisc_destroy() 246 mlxsw_sp_hdroom_bufs_reset_lossiness(&hdroom); in mlxsw_sp_qdisc_destroy() 247 mlxsw_sp_hdroom_bufs_reset_sizes(mlxsw_sp_port, &hdroom); in mlxsw_sp_qdisc_destroy() 248 err_hdroom = mlxsw_sp_hdroom_configure(mlxsw_sp_port, &hdroom); in mlxsw_sp_qdisc_destroy() 378 orig_hdroom = *mlxsw_sp_port->hdroom; in mlxsw_sp_qdisc_create() 380 struct mlxsw_sp_hdroom hdroom = orig_hdroom; in mlxsw_sp_qdisc_create() local 382 hdroom.mode = MLXSW_SP_HDROOM_MODE_TC; in mlxsw_sp_qdisc_create() 383 mlxsw_sp_hdroom_prios_reset_buf_idx(&hdroom); in mlxsw_sp_qdisc_create() [all …]
|
H A D | spectrum_ethtool.c | 214 struct mlxsw_sp_hdroom hdroom; in mlxsw_sp_port_set_pauseparam() local 228 orig_hdroom = *mlxsw_sp_port->hdroom; in mlxsw_sp_port_set_pauseparam() 230 hdroom = orig_hdroom; in mlxsw_sp_port_set_pauseparam() 232 hdroom.delay_bytes = MLXSW_SP_PAUSE_DELAY_BYTES; in mlxsw_sp_port_set_pauseparam() 234 hdroom.delay_bytes = 0; in mlxsw_sp_port_set_pauseparam() 237 hdroom.prios.prio[prio].lossy = !pause_en; in mlxsw_sp_port_set_pauseparam() 239 mlxsw_sp_hdroom_bufs_reset_lossiness(&hdroom); in mlxsw_sp_port_set_pauseparam() 240 mlxsw_sp_hdroom_bufs_reset_sizes(mlxsw_sp_port, &hdroom); in mlxsw_sp_port_set_pauseparam() 242 err = mlxsw_sp_hdroom_configure(mlxsw_sp_port, &hdroom); in mlxsw_sp_port_set_pauseparam()
|
H A D | spectrum_span.c | 980 struct mlxsw_sp_hdroom hdroom; in mlxsw_sp_span_port_buffer_update() local 982 hdroom = *mlxsw_sp_port->hdroom; in mlxsw_sp_span_port_buffer_update() 983 hdroom.int_buf.enable = enable; in mlxsw_sp_span_port_buffer_update() 984 mlxsw_sp_hdroom_bufs_reset_sizes(mlxsw_sp_port, &hdroom); in mlxsw_sp_span_port_buffer_update() 986 return mlxsw_sp_hdroom_configure(mlxsw_sp_port, &hdroom); in mlxsw_sp_span_port_buffer_update()
|
H A D | spectrum.h | 363 struct mlxsw_sp_hdroom *hdroom; member 619 void mlxsw_sp_hdroom_prios_reset_buf_idx(struct mlxsw_sp_hdroom *hdroom); 620 void mlxsw_sp_hdroom_bufs_reset_lossiness(struct mlxsw_sp_hdroom *hdroom); 622 struct mlxsw_sp_hdroom *hdroom); 624 const struct mlxsw_sp_hdroom *hdroom);
|
H A D | spectrum.c | 793 struct mlxsw_sp_hdroom hdroom; in mlxsw_sp_port_change_mtu() local 796 orig_hdroom = *mlxsw_sp_port->hdroom; in mlxsw_sp_port_change_mtu() 798 hdroom = orig_hdroom; in mlxsw_sp_port_change_mtu() 799 hdroom.mtu = mtu; in mlxsw_sp_port_change_mtu() 800 mlxsw_sp_hdroom_bufs_reset_sizes(mlxsw_sp_port, &hdroom); in mlxsw_sp_port_change_mtu() 802 err = mlxsw_sp_hdroom_configure(mlxsw_sp_port, &hdroom); in mlxsw_sp_port_change_mtu()
|
/linux/drivers/net/hyperv/ |
H A D | netvsc_drv.c | 800 unsigned int hdroom = xdp->data - xdp->data_hard_start; in netvsc_alloc_recv_skb() local 811 skb_reserve(skb, hdroom); in netvsc_alloc_recv_skb()
|