net/virtio: do not use PMD log type
Fixes: 1982462eadea ("net/virtio: add Rx free threshold setting") Cc: stable@dpdk.org Signed-off-by: David Marchand <david.marchand@redhat.com> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
This commit is contained in:
parent
f3854eba81
commit
db48aaa234
@ -690,16 +690,16 @@ virtio_dev_rx_queue_setup(struct rte_eth_dev *dev,
|
|||||||
RTE_MIN(vq->vq_nentries / 4, DEFAULT_RX_FREE_THRESH);
|
RTE_MIN(vq->vq_nentries / 4, DEFAULT_RX_FREE_THRESH);
|
||||||
|
|
||||||
if (rx_free_thresh & 0x3) {
|
if (rx_free_thresh & 0x3) {
|
||||||
RTE_LOG(ERR, PMD, "rx_free_thresh must be multiples of four."
|
PMD_INIT_LOG(ERR, "rx_free_thresh must be multiples of four."
|
||||||
" (rx_free_thresh=%u port=%u queue=%u)\n",
|
" (rx_free_thresh=%u port=%u queue=%u)",
|
||||||
rx_free_thresh, dev->data->port_id, queue_idx);
|
rx_free_thresh, dev->data->port_id, queue_idx);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rx_free_thresh >= vq->vq_nentries) {
|
if (rx_free_thresh >= vq->vq_nentries) {
|
||||||
RTE_LOG(ERR, PMD, "rx_free_thresh must be less than the "
|
PMD_INIT_LOG(ERR, "rx_free_thresh must be less than the "
|
||||||
"number of RX entries (%u)."
|
"number of RX entries (%u)."
|
||||||
" (rx_free_thresh=%u port=%u queue=%u)\n",
|
" (rx_free_thresh=%u port=%u queue=%u)",
|
||||||
vq->vq_nentries,
|
vq->vq_nentries,
|
||||||
rx_free_thresh, dev->data->port_id, queue_idx);
|
rx_free_thresh, dev->data->port_id, queue_idx);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user