if (!c || !test_bit(MLX5E_PTP_STATE_RX, c->state)) returnfalse;
*rqn = c->rq.rqn; returntrue;
}
int mlx5e_channels_rx_change_dim(struct mlx5e_channels *chs, bool enable)
{ int i;
for (i = 0; i < chs->num; i++) { int err = mlx5e_dim_rx_change(&chs->c[i]->rq, enable);
if (err) return err;
}
return 0;
}
int mlx5e_channels_tx_change_dim(struct mlx5e_channels *chs, bool enable)
{ int i, tc;
for (i = 0; i < chs->num; i++) { for (tc = 0; tc < mlx5e_get_dcb_num_tc(&chs->params); tc++) { int err = mlx5e_dim_tx_change(&chs->c[i]->sq[tc], enable);
if (err) return err;
}
}
return 0;
}
int mlx5e_channels_rx_toggle_dim(struct mlx5e_channels *chs)
{ int i;
for (i = 0; i < chs->num; i++) { /* If dim is enabled for the channel, reset the dim state so the * collected statistics will be reset. This is useful for * supporting legacy interfaces that allow things like changing * the CQ period mode for all channels without disturbing * individual channel configurations.
*/ if (chs->c[i]->rq.dim) { int err;
int mlx5e_channels_tx_toggle_dim(struct mlx5e_channels *chs)
{ int i, tc;
for (i = 0; i < chs->num; i++) { for (tc = 0; tc < mlx5e_get_dcb_num_tc(&chs->params); tc++) { int err;
/* If dim is enabled for the channel, reset the dim * state so the collected statistics will be reset. This * is useful for supporting legacy interfaces that allow * things like changing the CQ period mode for all * channels without disturbing individual channel * configurations.
*/ if (!chs->c[i]->sq[tc].dim) continue;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.