Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/ !
Dspectrum_buffers.c318 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 …]
Dspectrum_dcb.c71 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 …]
Dspectrum_qdisc.c242 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 …]
Dspectrum_ethtool.c214 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()
Dspectrum_span.c979 struct mlxsw_sp_hdroom hdroom; in mlxsw_sp_span_port_buffer_update() local
981 hdroom = *mlxsw_sp_port->hdroom; in mlxsw_sp_span_port_buffer_update()
982 hdroom.int_buf.enable = enable; in mlxsw_sp_span_port_buffer_update()
983 mlxsw_sp_hdroom_bufs_reset_sizes(mlxsw_sp_port, &hdroom); in mlxsw_sp_span_port_buffer_update()
985 return mlxsw_sp_hdroom_configure(mlxsw_sp_port, &hdroom); in mlxsw_sp_span_port_buffer_update()
Dspectrum.h364 struct mlxsw_sp_hdroom *hdroom; member
616 void mlxsw_sp_hdroom_prios_reset_buf_idx(struct mlxsw_sp_hdroom *hdroom);
617 void mlxsw_sp_hdroom_bufs_reset_lossiness(struct mlxsw_sp_hdroom *hdroom);
619 struct mlxsw_sp_hdroom *hdroom);
621 const struct mlxsw_sp_hdroom *hdroom);
Dspectrum.c790 struct mlxsw_sp_hdroom hdroom; in mlxsw_sp_port_change_mtu() local
793 orig_hdroom = *mlxsw_sp_port->hdroom; in mlxsw_sp_port_change_mtu()
795 hdroom = orig_hdroom; in mlxsw_sp_port_change_mtu()
796 hdroom.mtu = mtu; in mlxsw_sp_port_change_mtu()
797 mlxsw_sp_hdroom_bufs_reset_sizes(mlxsw_sp_port, &hdroom); in mlxsw_sp_port_change_mtu()
799 err = mlxsw_sp_hdroom_configure(mlxsw_sp_port, &hdroom); in mlxsw_sp_port_change_mtu()
/linux-6.1.9/drivers/net/hyperv/ !
Dnetvsc_drv.c796 unsigned int hdroom = xdp->data - xdp->data_hard_start; in netvsc_alloc_recv_skb() local
807 skb_reserve(skb, hdroom); in netvsc_alloc_recv_skb()