/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/ |
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() 585 struct mlxsw_sp_hdroom *hdroom = mlxsw_sp_port->hdroom; mlxsw_sp_dcbnl_getbuffer() local 613 struct mlxsw_sp_hdroom hdroom; mlxsw_sp_dcbnl_setbuffer() local [all...] |
H A 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 in mlxsw_sp_hdroom_bufs_reset_lossiness() 347 mlxsw_sp_hdroom_buf_delay_get(const struct mlxsw_sp *mlxsw_sp, const struct mlxsw_sp_hdroom *hdroom) mlxsw_sp_hdroom_buf_delay_get() argument 372 mlxsw_sp_hdroom_buf_is_used(const struct mlxsw_sp_hdroom *hdroom, int buf) mlxsw_sp_hdroom_buf_is_used() argument 383 mlxsw_sp_hdroom_bufs_reset_sizes(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_hdroom *hdroom) mlxsw_sp_hdroom_bufs_reset_sizes() argument 435 mlxsw_sp_hdroom_configure_buffers(struct mlxsw_sp_port *mlxsw_sp_port, const struct mlxsw_sp_hdroom *hdroom, bool force) mlxsw_sp_hdroom_configure_buffers() argument 467 mlxsw_sp_hdroom_configure_priomap(struct mlxsw_sp_port *mlxsw_sp_port, const struct mlxsw_sp_hdroom *hdroom, bool force) mlxsw_sp_hdroom_configure_priomap() argument 491 mlxsw_sp_hdroom_configure_int_buf(struct mlxsw_sp_port *mlxsw_sp_port, const struct mlxsw_sp_hdroom *hdroom, bool force) mlxsw_sp_hdroom_configure_int_buf() argument 511 mlxsw_sp_hdroom_bufs_fit(struct mlxsw_sp *mlxsw_sp, const struct mlxsw_sp_hdroom *hdroom) mlxsw_sp_hdroom_bufs_fit() argument 524 __mlxsw_sp_hdroom_configure(struct mlxsw_sp_port *mlxsw_sp_port, const struct mlxsw_sp_hdroom *hdroom, bool force) __mlxsw_sp_hdroom_configure() argument 579 mlxsw_sp_hdroom_configure(struct mlxsw_sp_port *mlxsw_sp_port, const struct mlxsw_sp_hdroom *hdroom) mlxsw_sp_hdroom_configure() argument 588 struct mlxsw_sp_hdroom hdroom = {}; mlxsw_sp_port_headroom_init() local [all...] |
H A 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 in mlxsw_sp_qdisc_replace() [all...] |
H A 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()
|
H A D | spectrum.h | 322 struct mlxsw_sp_hdroom *hdroom; member 537 void mlxsw_sp_hdroom_prios_reset_buf_idx(struct mlxsw_sp_hdroom *hdroom); 538 void mlxsw_sp_hdroom_bufs_reset_lossiness(struct mlxsw_sp_hdroom *hdroom); 540 struct mlxsw_sp_hdroom *hdroom); 542 const struct mlxsw_sp_hdroom *hdroom);
|
H A D | spectrum_span.c | 976 struct mlxsw_sp_hdroom hdroom; in mlxsw_sp_span_port_buffer_update() local 978 hdroom = *mlxsw_sp_port->hdroom; in mlxsw_sp_span_port_buffer_update() 979 hdroom.int_buf.enable = enable; in mlxsw_sp_span_port_buffer_update() 980 mlxsw_sp_hdroom_bufs_reset_sizes(mlxsw_sp_port, &hdroom); in mlxsw_sp_span_port_buffer_update() 982 return mlxsw_sp_hdroom_configure(mlxsw_sp_port, &hdroom); in mlxsw_sp_span_port_buffer_update()
|
H A 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()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/ |
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() 585 struct mlxsw_sp_hdroom *hdroom = mlxsw_sp_port->hdroom; mlxsw_sp_dcbnl_getbuffer() local 613 struct mlxsw_sp_hdroom hdroom; mlxsw_sp_dcbnl_setbuffer() local [all...] |
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 in mlxsw_sp_hdroom_bufs_reset_lossiness() 362 mlxsw_sp_hdroom_buf_delay_get(const struct mlxsw_sp *mlxsw_sp, const struct mlxsw_sp_hdroom *hdroom) mlxsw_sp_hdroom_buf_delay_get() argument 387 mlxsw_sp_hdroom_buf_is_used(const struct mlxsw_sp_hdroom *hdroom, int buf) mlxsw_sp_hdroom_buf_is_used() argument 398 mlxsw_sp_hdroom_bufs_reset_sizes(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_hdroom *hdroom) mlxsw_sp_hdroom_bufs_reset_sizes() argument 450 mlxsw_sp_hdroom_configure_buffers(struct mlxsw_sp_port *mlxsw_sp_port, const struct mlxsw_sp_hdroom *hdroom, bool force) mlxsw_sp_hdroom_configure_buffers() argument 482 mlxsw_sp_hdroom_configure_priomap(struct mlxsw_sp_port *mlxsw_sp_port, const struct mlxsw_sp_hdroom *hdroom, bool force) mlxsw_sp_hdroom_configure_priomap() argument 506 mlxsw_sp_hdroom_configure_int_buf(struct mlxsw_sp_port *mlxsw_sp_port, const struct mlxsw_sp_hdroom *hdroom, bool force) mlxsw_sp_hdroom_configure_int_buf() argument 526 mlxsw_sp_hdroom_bufs_fit(struct mlxsw_sp *mlxsw_sp, const struct mlxsw_sp_hdroom *hdroom) mlxsw_sp_hdroom_bufs_fit() argument 539 __mlxsw_sp_hdroom_configure(struct mlxsw_sp_port *mlxsw_sp_port, const struct mlxsw_sp_hdroom *hdroom, bool force) __mlxsw_sp_hdroom_configure() argument 594 mlxsw_sp_hdroom_configure(struct mlxsw_sp_port *mlxsw_sp_port, const struct mlxsw_sp_hdroom *hdroom) mlxsw_sp_hdroom_configure() argument 603 struct mlxsw_sp_hdroom hdroom = {}; mlxsw_sp_port_headroom_init() local [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 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 | 979 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()
|
H A D | spectrum.h | 367 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 | 808 struct mlxsw_sp_hdroom hdroom; in mlxsw_sp_port_change_mtu() local 811 orig_hdroom = *mlxsw_sp_port->hdroom; in mlxsw_sp_port_change_mtu() 813 hdroom = orig_hdroom; in mlxsw_sp_port_change_mtu() 814 hdroom.mtu = mtu; in mlxsw_sp_port_change_mtu() 815 mlxsw_sp_hdroom_bufs_reset_sizes(mlxsw_sp_port, &hdroom); in mlxsw_sp_port_change_mtu() 817 err = mlxsw_sp_hdroom_configure(mlxsw_sp_port, &hdroom); in mlxsw_sp_port_change_mtu()
|
/kernel/linux/linux-5.10/drivers/net/hyperv/ |
H A 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()
|
/kernel/linux/linux-6.6/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()
|