DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Chen Jing D(Mark)" <jing.d.chen@intel.com>
To: dev@dpdk.org
Cc: daniels@research.att.com, helin.zhang@intel.com,
	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 v2 2/4] net/i40e: return correct VSI id
Date: Fri, 13 Jan 2017 11:13:19 +0800	[thread overview]
Message-ID: <1484277201-5930-3-git-send-email-jing.d.chen@intel.com> (raw)
In-Reply-To: <1484277201-5930-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 fa4af2b..fd83c16 100644
--- a/drivers/net/i40e/i40e_pf.c
+++ b/drivers/net/i40e/i40e_pf.c
@@ -329,8 +329,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

  parent reply	other threads:[~2017-01-13 10:16 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     ` Chen Jing D(Mark) [this message]
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 ` [dpdk-dev] [PATCH 2/4] net/i40e: return correct VSI id Chen Jing D(Mark)
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=1484277201-5930-3-git-send-email-jing.d.chen@intel.com \
    --to=jing.d.chen@intel.com \
    --cc=daniels@research.att.com \
    --cc=dev@dpdk.org \
    --cc=ferruh.yigit@intel.com \
    --cc=helin.zhang@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).