From: "Chen Jing D(Mark)" <jing.d.chen@intel.com>
To: dev@dpdk.org
Cc: ferruh.yigit@intel.com, vincent.jardin@6wind.com,
jingjing.wu@intel.com,
"Chen Jing D(Mark)" <jing.d.chen@intel.com>
Subject: [dpdk-dev] [PATCH 2/4] net/i40e: return correct VSI id
Date: Tue, 3 Jan 2017 08:59:17 +0800 [thread overview]
Message-ID: <1483405159-9237-3-git-send-email-jing.d.chen@intel.com> (raw)
In-Reply-To: <1483405159-9237-1-git-send-email-jing.d.chen@intel.com>
PF host didn't return correct VSI id to VF.
This change fix it.
Signed-off-by: Chen Jing D(Mark) <jing.d.chen@intel.com>
---
drivers/net/i40e/i40e_pf.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/net/i40e/i40e_pf.c b/drivers/net/i40e/i40e_pf.c
index 229f71a..5314d9f 100644
--- a/drivers/net/i40e/i40e_pf.c
+++ b/drivers/net/i40e/i40e_pf.c
@@ -335,8 +335,7 @@
/* Change below setting if PF host can support more VSIs for VF */
vf_res->vsi_res[0].vsi_type = I40E_VSI_SRIOV;
- /* As assume Vf only has single VSI now, always return 0 */
- vf_res->vsi_res[0].vsi_id = 0;
+ vf_res->vsi_res[0].vsi_id = vf->vsi->vsi_id;
vf_res->vsi_res[0].num_queue_pairs = vf->vsi->nb_qps;
ether_addr_copy(&vf->mac_addr,
(struct ether_addr *)vf_res->vsi_res[0].default_mac_addr);
--
1.7.7.6
next prev parent reply other threads:[~2017-01-03 8:02 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-03 0:59 [dpdk-dev] [PATCH 0/4] enhancement to i40e PF host driver Chen Jing D(Mark)
2017-01-03 0:59 ` [dpdk-dev] [PATCH 1/4] net/i40e: change version number to support Linux VF Chen Jing D(Mark)
2017-01-13 3:13 ` [dpdk-dev] [PATCH v2 0/4] enhancement to i40e PF host driver Chen Jing D(Mark)
2017-01-13 3:13 ` [dpdk-dev] [PATCH v2 1/4] net/i40e: change version number to support Linux VF Chen Jing D(Mark)
2017-01-13 3:13 ` [dpdk-dev] [PATCH v2 2/4] net/i40e: return correct VSI id Chen Jing D(Mark)
2017-01-13 3:13 ` [dpdk-dev] [PATCH v2 3/4] net/i40e: parse more VF parameter and configure Chen Jing D(Mark)
2017-01-13 3:13 ` [dpdk-dev] [PATCH v2 4/4] net/i40e: support Linux VF to configure IRQ link list Chen Jing D(Mark)
2017-01-16 0:55 ` [dpdk-dev] [PATCH v2 0/4] enhancement to i40e PF host driver Zhang, Helin
2017-01-16 7:51 ` Vincent JARDIN
2017-01-17 16:11 ` Ferruh Yigit
2017-01-03 0:59 ` Chen Jing D(Mark) [this message]
2017-01-03 0:59 ` [dpdk-dev] [PATCH 3/4] net/i40e: parse more VF parameter and configure Chen Jing D(Mark)
2017-01-03 0:59 ` [dpdk-dev] [PATCH 4/4] net/i40e: support Linux VF to configure IRQ link list Chen Jing D(Mark)
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=1483405159-9237-3-git-send-email-jing.d.chen@intel.com \
--to=jing.d.chen@intel.com \
--cc=dev@dpdk.org \
--cc=ferruh.yigit@intel.com \
--cc=jingjing.wu@intel.com \
--cc=vincent.jardin@6wind.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).