From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: ibarnea@cisco.com
Cc: dev@dpdk.org
Subject: [dpdk-dev] [PATCH v2] net/virtio: add speed capability
Date: Fri, 10 Feb 2017 12:05:25 +0100 [thread overview]
Message-ID: <1486724725-17410-1-git-send-email-thomas.monjalon@6wind.com> (raw)
In-Reply-To: <2185375.0v2z51C3zP@xps13>
From: Ido Barnea <ibarnea@cisco.com>
The chosen fake capability (10G) is consistent with the reported
link speed in virtio_dev_link_update():
link.link_speed = SPEED_10G;
The feature is not marked in doc/guides/nics/features/virtio.ini
as it is only a fake value.
Signed-off-by: Ido Barnea <ibarnea@cisco.com>
[Thomas: comments added]
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
---
drivers/net/virtio/virtio_ethdev.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c
index d1ff234..4dc03b9 100644
--- a/drivers/net/virtio/virtio_ethdev.c
+++ b/drivers/net/virtio/virtio_ethdev.c
@@ -1835,6 +1835,8 @@ virtio_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)
uint64_t tso_mask, host_features;
struct virtio_hw *hw = dev->data->dev_private;
+ dev_info->speed_capa = ETH_LINK_SPEED_10G; /* fake value */
+
dev_info->pci_dev = dev->device ? RTE_DEV_TO_PCI(dev->device) : NULL;
dev_info->max_rx_queues =
RTE_MIN(hw->max_queue_pairs, VIRTIO_MAX_RX_QUEUES);
--
2.7.0
next prev parent reply other threads:[~2017-02-10 11:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20170202092357.58508-1-ibarnea@cisco.com>
2017-02-02 12:05 ` [dpdk-dev] [PATCH] Fill speed_capa for virtio Ido Barnea (ibarnea)
2017-02-09 16:19 ` Thomas Monjalon
2017-02-10 7:49 ` Ido Barnea (ibarnea)
2017-02-10 8:41 ` Thomas Monjalon
2017-02-10 11:05 ` Thomas Monjalon [this message]
2017-02-10 11:06 ` [dpdk-dev] [PATCH v2] net/virtio: add speed capability Thomas Monjalon
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=1486724725-17410-1-git-send-email-thomas.monjalon@6wind.com \
--to=thomas.monjalon@6wind.com \
--cc=dev@dpdk.org \
--cc=ibarnea@cisco.com \
/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).