DPDK patches and discussions
 help / color / mirror / Atom feed
From: =?gb18030?B?1ebO0rfnssk=?= <1534057243@qq.com>
To: =?gb18030?B?ZGV2?= <dev@dpdk.org>
Subject: [dpdk-dev] [vhost-user] how to get enabled vring num
Date: Sun, 4 Feb 2018 09:45:38 +0800	[thread overview]
Message-ID: <tencent_81F1389A1ABC2AEDB6428C24FBB1E7AB2F07@qq.com> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb18030", Size: 525 bytes --]

Hi, All:
    I create qemu VM with 1 cpu and 1 NIC using vhost-user client mode with 2 pairs queue, when VM start, bu default only one pair queue is enabled unless use 'ethtool -L eth0 2' to enable.
    now I want to get vring num using vhost-user lib api---rte_vhost_get_vring_num, and send pkt to allqueues of VM(actully donnot know how many queue is enabled) by round robin, if i send pkt to a disabled queue, it will be fail.
    So, is there a api to get only enabled vring num rather than all vring num?


Thanks!

                 reply	other threads:[~2018-02-04  1:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=tencent_81F1389A1ABC2AEDB6428C24FBB1E7AB2F07@qq.com \
    --to=1534057243@qq.com \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).