> -----Original Message----- > From: dev <dev-boun...@dpdk.org> On Behalf Of Jens Freimann > Sent: Friday, September 7, 2018 2:20 AM > To: dev@dpdk.org > Cc: tiwei....@intel.com; maxime.coque...@redhat.com > Subject: [dpdk-dev] [PATCH v5 05/11] net/virtio: dump packed virtqueue > data > > Add support to dump packed virtqueue data to the > VIRTQUEUE_DUMP() macro. > > Signed-off-by: Jens Freimann <jfreim...@redhat.com> Acked-by: Gavin Hu <gavin...@arm.com> > --- > drivers/net/virtio/virtqueue.h | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/net/virtio/virtqueue.h b/drivers/net/virtio/virtqueue.h > index 53fce61b4..531ba8c65 100644 > --- a/drivers/net/virtio/virtqueue.h > +++ b/drivers/net/virtio/virtqueue.h > @@ -384,6 +384,12 @@ virtqueue_notify(struct virtqueue *vq) > uint16_t used_idx, nused; \ > used_idx = (vq)->vq_ring.used->idx; \ > nused = (uint16_t)(used_idx - (vq)->vq_used_cons_idx); \ > +if (vtpci_packed_queue((vq)->hw)) { \ > + PMD_INIT_LOG(DEBUG, \ > + "VQ: - size=%d; free=%d; last_used_idx=%d;", \ > + (vq)->vq_nentries, (vq)->vq_free_cnt, nused); \ > + break; \ > +} \ > PMD_INIT_LOG(DEBUG, \ > "VQ: - size=%d; free=%d; used=%d; desc_head_idx=%d;" \ > " avail.idx=%d; used_cons_idx=%d; used.idx=%d;" \ > -- > 2.17.1 IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
Re: [dpdk-dev] [PATCH v5 05/11] net/virtio: dump packed virtqueue data
Gavin Hu (Arm Technology China) Sun, 09 Sep 2018 23:03:01 -0700
- [dpdk-dev] [PATCH v5 04/11] net/virtio: fl... Jens Freimann
- Re: [dpdk-dev] [PATCH v5 04/11] net/v... Maxime Coquelin
- Re: [dpdk-dev] [PATCH v5 04/11] n... Jens Freimann
- [dpdk-dev] [PATCH v5 06/11] net/virtio-use... Jens Freimann
- Re: [dpdk-dev] [PATCH v5 06/11] net/v... Gavin Hu (Arm Technology China)
- Re: [dpdk-dev] [PATCH v5 06/11] net/v... Maxime Coquelin
- [dpdk-dev] [PATCH v5 03/11] net/virtio: ad... Jens Freimann
- Re: [dpdk-dev] [PATCH v5 03/11] net/v... Maxime Coquelin
- Re: [dpdk-dev] [PATCH v5 03/11] n... Jens Freimann
- [dpdk-dev] [PATCH v5 05/11] net/virtio: du... Jens Freimann
- Re: [dpdk-dev] [PATCH v5 05/11] net/v... Gavin Hu (Arm Technology China)
- Re: [dpdk-dev] [PATCH v5 05/11] n... Tiwei Bie
- Re: [dpdk-dev] [PATCH v5 05/1... Jens Freimann
- Re: [dpdk-dev] [PATCH v5 05/11] net/v... Maxime Coquelin
- [dpdk-dev] [PATCH v5 07/11] net/virtio: im... Jens Freimann
- Re: [dpdk-dev] [PATCH v5 07/11] net/v... Gavin Hu (Arm Technology China)
- Re: [dpdk-dev] [PATCH v5 07/11] net/v... Gavin Hu (Arm Technology China)
- Re: [dpdk-dev] [PATCH v5 07/11] net/v... Maxime Coquelin
- Re: [dpdk-dev] [PATCH v5 07/11] net/v... Tiwei Bie
- [dpdk-dev] [PATCH v5 09/11] net/virtio: di... Jens Freimann
- Re: [dpdk-dev] [PATCH v5 09/11] net/v... Tiwei Bie