mirror of
https://passt.top/passt
synced 2025-05-22 17:25:35 +02:00
vhost_user: Turn some vhost-user message reports to trace()
Having every vhost-user message printed as part of debug output makes debugging anything else a bit complicated. Change per-packet debug() messages in vu_kick_cb() and vu_send_single() to trace() [dgibson: switch different messages to trace()] Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
e25a93032f
commit
e894d9ae82
2 changed files with 5 additions and 5 deletions
|
@ -640,8 +640,8 @@ static bool vu_set_vring_num_exec(struct vu_dev *vdev,
|
|||
unsigned int idx = msg->payload.state.index;
|
||||
unsigned int num = msg->payload.state.num;
|
||||
|
||||
debug("State.index: %u", idx);
|
||||
debug("State.num: %u", num);
|
||||
trace("State.index: %u", idx);
|
||||
trace("State.num: %u", num);
|
||||
vdev->vq[idx].vring.num = num;
|
||||
|
||||
return false;
|
||||
|
|
|
@ -238,7 +238,7 @@ void vu_kick_cb(struct vu_dev *vdev, union epoll_ref ref,
|
|||
if (rc == -1)
|
||||
die_perror("vhost-user kick eventfd_read()");
|
||||
|
||||
debug("vhost-user: got kick_data: %016"PRIx64" idx: %d",
|
||||
trace("vhost-user: got kick_data: %016"PRIx64" idx: %d",
|
||||
kick_data, ref.queue);
|
||||
if (VHOST_USER_IS_QUEUE_TX(ref.queue))
|
||||
vu_handle_tx(vdev, ref.queue, now);
|
||||
|
@ -262,7 +262,7 @@ int vu_send_single(const struct ctx *c, const void *buf, size_t size)
|
|||
int elem_cnt;
|
||||
int i;
|
||||
|
||||
debug("vu_send_single size %zu", size);
|
||||
trace("vu_send_single size %zu", size);
|
||||
|
||||
if (!vu_queue_enabled(vq) || !vu_queue_started(vq)) {
|
||||
debug("Got packet, but RX virtqueue not usable yet");
|
||||
|
@ -294,7 +294,7 @@ int vu_send_single(const struct ctx *c, const void *buf, size_t size)
|
|||
|
||||
vu_flush(vdev, vq, elem, elem_cnt);
|
||||
|
||||
debug("vhost-user sent %zu", total);
|
||||
trace("vhost-user sent %zu", total);
|
||||
|
||||
return total;
|
||||
err:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue