All of lore.kernel.org
 help / color / mirror / Atom feed
From: Amritha Nambiar <amritha.nambiar@intel.com>
To: intel-wired-lan@lists.osuosl.org, jeffrey.t.kirsher@intel.com
Cc: alexander.h.duyck@intel.com, jiri@resnulli.us,
	amritha.nambiar@intel.com, netdev@vger.kernel.org,
	jhs@mojatatu.com, alexander.duyck@gmail.com,
	xiyou.wangcong@gmail.com
Subject: [jkirsher/next-queue PATCH v4 2/6] i40e: Map TCs with the VSI seids
Date: Tue, 10 Oct 2017 17:24:23 -0700	[thread overview]
Message-ID: <150768146296.5320.684345674569171719.stgit@anamdev.jf.intel.com> (raw)
In-Reply-To: <150768099999.5320.1633617713417675266.stgit@anamdev.jf.intel.com>

Add mapping of TCs with the seids of the channel VSIs. TC0
will be mapped to the main VSI seid and all other TCs are
mapped to the seid of the corresponding channel VSI.

Signed-off-by: Amritha Nambiar <amritha.nambiar@intel.com>
---
 drivers/net/ethernet/intel/i40e/i40e.h      |    1 +
 drivers/net/ethernet/intel/i40e/i40e_main.c |    2 ++
 2 files changed, 3 insertions(+)

diff --git a/drivers/net/ethernet/intel/i40e/i40e.h b/drivers/net/ethernet/intel/i40e/i40e.h
index eb01776..f3c501e 100644
--- a/drivers/net/ethernet/intel/i40e/i40e.h
+++ b/drivers/net/ethernet/intel/i40e/i40e.h
@@ -739,6 +739,7 @@ struct i40e_vsi {
 	u16 next_base_queue;	/* next queue to be used for channel setup */
 
 	struct list_head ch_list;
+	u16 tc_seid_map[I40E_MAX_TRAFFIC_CLASS];
 
 	void *priv;	/* client driver data reference. */
 
diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c
index 75f944f..33a8f429 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_main.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_main.c
@@ -6100,6 +6100,7 @@ static int i40e_configure_queue_channels(struct i40e_vsi *vsi)
 	int ret = 0, i;
 
 	/* Create app vsi with the TCs. Main VSI with TC0 is already set up */
+	vsi->tc_seid_map[0] = vsi->seid;
 	for (i = 1; i < I40E_MAX_TRAFFIC_CLASS; i++) {
 		if (vsi->tc_config.enabled_tc & BIT(i)) {
 			ch = kzalloc(sizeof(*ch), GFP_KERNEL);
@@ -6130,6 +6131,7 @@ static int i40e_configure_queue_channels(struct i40e_vsi *vsi)
 					i, ch->num_queue_pairs);
 				goto err_free;
 			}
+			vsi->tc_seid_map[i] = ch->seid;
 		}
 	}
 	return ret;

WARNING: multiple messages have this Message-ID (diff)
From: Amritha Nambiar <amritha.nambiar@intel.com>
To: intel-wired-lan@osuosl.org
Subject: [Intel-wired-lan] [jkirsher/next-queue PATCH v4 2/6] i40e: Map TCs with the VSI seids
Date: Tue, 10 Oct 2017 17:24:23 -0700	[thread overview]
Message-ID: <150768146296.5320.684345674569171719.stgit@anamdev.jf.intel.com> (raw)
In-Reply-To: <150768099999.5320.1633617713417675266.stgit@anamdev.jf.intel.com>

Add mapping of TCs with the seids of the channel VSIs. TC0
will be mapped to the main VSI seid and all other TCs are
mapped to the seid of the corresponding channel VSI.

Signed-off-by: Amritha Nambiar <amritha.nambiar@intel.com>
---
 drivers/net/ethernet/intel/i40e/i40e.h      |    1 +
 drivers/net/ethernet/intel/i40e/i40e_main.c |    2 ++
 2 files changed, 3 insertions(+)

diff --git a/drivers/net/ethernet/intel/i40e/i40e.h b/drivers/net/ethernet/intel/i40e/i40e.h
index eb01776..f3c501e 100644
--- a/drivers/net/ethernet/intel/i40e/i40e.h
+++ b/drivers/net/ethernet/intel/i40e/i40e.h
@@ -739,6 +739,7 @@ struct i40e_vsi {
 	u16 next_base_queue;	/* next queue to be used for channel setup */
 
 	struct list_head ch_list;
+	u16 tc_seid_map[I40E_MAX_TRAFFIC_CLASS];
 
 	void *priv;	/* client driver data reference. */
 
diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c
index 75f944f..33a8f429 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_main.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_main.c
@@ -6100,6 +6100,7 @@ static int i40e_configure_queue_channels(struct i40e_vsi *vsi)
 	int ret = 0, i;
 
 	/* Create app vsi with the TCs. Main VSI with TC0 is already set up */
+	vsi->tc_seid_map[0] = vsi->seid;
 	for (i = 1; i < I40E_MAX_TRAFFIC_CLASS; i++) {
 		if (vsi->tc_config.enabled_tc & BIT(i)) {
 			ch = kzalloc(sizeof(*ch), GFP_KERNEL);
@@ -6130,6 +6131,7 @@ static int i40e_configure_queue_channels(struct i40e_vsi *vsi)
 					i, ch->num_queue_pairs);
 				goto err_free;
 			}
+			vsi->tc_seid_map[i] = ch->seid;
 		}
 	}
 	return ret;


  parent reply	other threads:[~2017-10-11  0:25 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-11  0:24 [jkirsher/next-queue PATCH v4 0/6] tc-flower based cloud filters in i40e Amritha Nambiar
2017-10-11  0:24 ` [Intel-wired-lan] " Amritha Nambiar
2017-10-11  0:24 ` [jkirsher/next-queue PATCH v4 1/6] cls_flower: Offload classid to hardware Amritha Nambiar
2017-10-11  0:24   ` [Intel-wired-lan] " Amritha Nambiar
2017-10-11  0:24 ` Amritha Nambiar [this message]
2017-10-11  0:24   ` [Intel-wired-lan] [jkirsher/next-queue PATCH v4 2/6] i40e: Map TCs with the VSI seids Amritha Nambiar
2017-10-11  0:24 ` [jkirsher/next-queue PATCH v4 3/6] i40e: Cloud filter mode for set_switch_config command Amritha Nambiar
2017-10-11  0:24   ` [Intel-wired-lan] " Amritha Nambiar
2017-10-11 23:30   ` Shannon Nelson
2017-10-11 23:30     ` Shannon Nelson
2017-10-26 21:10     ` Nambiar, Amritha
2017-10-26 21:10       ` Nambiar, Amritha
2017-10-11  0:24 ` [jkirsher/next-queue PATCH v4 4/6] i40e: Admin queue definitions for cloud filters Amritha Nambiar
2017-10-11  0:24   ` [Intel-wired-lan] " Amritha Nambiar
2017-10-11 23:30   ` Shannon Nelson
2017-10-11 23:30     ` Shannon Nelson
2017-10-11  0:24 ` [jkirsher/next-queue PATCH v4 5/6] i40e: Clean up of " Amritha Nambiar
2017-10-11  0:24   ` [Intel-wired-lan] " Amritha Nambiar
2017-10-11 23:30   ` Shannon Nelson
2017-10-11 23:30     ` Shannon Nelson
2017-10-11  0:24 ` [jkirsher/next-queue PATCH v4 6/6] i40e: Enable cloud filters via tc-flower Amritha Nambiar
2017-10-11  0:24   ` [Intel-wired-lan] " Amritha Nambiar
2017-10-11 23:30   ` Shannon Nelson
2017-10-11 23:30     ` Shannon Nelson
2017-10-26 21:29     ` Nambiar, Amritha
2017-10-26 21:29       ` Nambiar, Amritha
2017-10-26 21:35       ` Shannon Nelson
2017-10-26 21:35         ` Shannon Nelson
2017-10-26 21:47         ` Nambiar, Amritha
2017-10-26 21:47           ` Nambiar, Amritha
2017-10-11 12:42 ` [jkirsher/next-queue PATCH v4 0/6] tc-flower based cloud filters in i40e Jamal Hadi Salim
2017-10-11 12:42   ` [Intel-wired-lan] " Jamal Hadi Salim
2017-10-11 22:41   ` Nambiar, Amritha
2017-10-11 22:41     ` [Intel-wired-lan] " Nambiar, Amritha
2017-10-11 12:56 ` Jiri Pirko
2017-10-11 12:56   ` [Intel-wired-lan] " Jiri Pirko
2017-10-11 17:46   ` Alexander Duyck
2017-10-11 17:46     ` [Intel-wired-lan] " Alexander Duyck
2017-10-11 20:38     ` Jiri Pirko
2017-10-11 20:38       ` [Intel-wired-lan] " Jiri Pirko
2017-10-11 20:46       ` David Miller
2017-10-11 20:46         ` [Intel-wired-lan] " David Miller
2017-10-11 20:58         ` Jiri Pirko
2017-10-11 20:58           ` [Intel-wired-lan] " Jiri Pirko
2017-10-11 21:19           ` David Miller
2017-10-11 21:19             ` [Intel-wired-lan] " David Miller
2017-10-11 21:28             ` Jiri Pirko
2017-10-11 21:28               ` [Intel-wired-lan] " Jiri Pirko
2017-10-12  7:05           ` Alexander Duyck
2017-10-12  7:05             ` [Intel-wired-lan] " Alexander Duyck
2017-10-12  7:30             ` Jiri Pirko
2017-10-12  7:30               ` [Intel-wired-lan] " Jiri Pirko

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=150768146296.5320.684345674569171719.stgit@anamdev.jf.intel.com \
    --to=amritha.nambiar@intel.com \
    --cc=alexander.duyck@gmail.com \
    --cc=alexander.h.duyck@intel.com \
    --cc=intel-wired-lan@lists.osuosl.org \
    --cc=jeffrey.t.kirsher@intel.com \
    --cc=jhs@mojatatu.com \
    --cc=jiri@resnulli.us \
    --cc=netdev@vger.kernel.org \
    --cc=xiyou.wangcong@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.