DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/ice: fix queue index for switch filter
@ 2019-10-22  6:39 Wei Zhao
  2019-10-22  7:15 ` [dpdk-dev] [PATCH v2] " Wei Zhao
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Wei Zhao @ 2019-10-22  6:39 UTC (permalink / raw)
  To: dev; +Cc: stable, xiaolong.ye, Wei Zhao

When calculate queue index for queue action in
switch filter, vsi base queue should be included.

Cc: stable@dpdk.org
Fixes: 24dc00c30907 ("net/ice: enable switch filter")

Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
---
 drivers/net/ice/ice_switch_filter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ice/ice_switch_filter.c b/drivers/net/ice/ice_switch_filter.c
index 6c96b6f..e1eaf91 100644
--- a/drivers/net/ice/ice_switch_filter.c
+++ b/drivers/net/ice/ice_switch_filter.c
@@ -926,7 +926,7 @@ ice_switch_parse_action(struct ice_pf *pf,
 	uint16_t valid_qgrop_number[MAX_QGRP_NUM_TYPE] = {
 		 2, 4, 8, 16, 32, 64, 128};
 
-	base_queue = pf->base_queue;
+	base_queue = pf->base_queue + vsi->base_queue;
 	for (action = actions; action->type !=
 			RTE_FLOW_ACTION_TYPE_END; action++) {
 		action_type = action->type;
-- 
2.7.5


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [dpdk-dev] [PATCH v2] net/ice: fix queue index for switch filter
  2019-10-22  6:39 [dpdk-dev] [PATCH] net/ice: fix queue index for switch filter Wei Zhao
@ 2019-10-22  7:15 ` Wei Zhao
  2019-10-22  7:41 ` [dpdk-dev] [PATCH] " Ye Xiaolong
  2019-10-22  7:45 ` Ye Xiaolong
  2 siblings, 0 replies; 4+ messages in thread
From: Wei Zhao @ 2019-10-22  7:15 UTC (permalink / raw)
  To: dev; +Cc: stable, xiaolong.ye, Wei Zhao

When calculate queue index for queue action in
switch filter, vsi base queue should be included.

Cc: stable@dpdk.org
Fixes: 57c4f2693588 ("net/ice: enable switch filter")

Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
---
 drivers/net/ice/ice_switch_filter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ice/ice_switch_filter.c b/drivers/net/ice/ice_switch_filter.c
index 6c96b6f..e1eaf91 100644
--- a/drivers/net/ice/ice_switch_filter.c
+++ b/drivers/net/ice/ice_switch_filter.c
@@ -926,7 +926,7 @@ ice_switch_parse_action(struct ice_pf *pf,
 	uint16_t valid_qgrop_number[MAX_QGRP_NUM_TYPE] = {
 		 2, 4, 8, 16, 32, 64, 128};
 
-	base_queue = pf->base_queue;
+	base_queue = pf->base_queue + vsi->base_queue;
 	for (action = actions; action->type !=
 			RTE_FLOW_ACTION_TYPE_END; action++) {
 		action_type = action->type;
-- 
2.7.5


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] [PATCH] net/ice: fix queue index for switch filter
  2019-10-22  6:39 [dpdk-dev] [PATCH] net/ice: fix queue index for switch filter Wei Zhao
  2019-10-22  7:15 ` [dpdk-dev] [PATCH v2] " Wei Zhao
@ 2019-10-22  7:41 ` Ye Xiaolong
  2019-10-22  7:45 ` Ye Xiaolong
  2 siblings, 0 replies; 4+ messages in thread
From: Ye Xiaolong @ 2019-10-22  7:41 UTC (permalink / raw)
  To: Wei Zhao; +Cc: dev, stable

On 10/22, Wei Zhao wrote:
>When calculate queue index for queue action in
>switch filter, vsi base queue should be included.
>
>Cc: stable@dpdk.org
>Fixes: 24dc00c30907 ("net/ice: enable switch filter")

Should be:

Fixes: 57c4f2693588 ("net/ice: enable switch filter")
>
>Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
>---
> drivers/net/ice/ice_switch_filter.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/drivers/net/ice/ice_switch_filter.c b/drivers/net/ice/ice_switch_filter.c
>index 6c96b6f..e1eaf91 100644
>--- a/drivers/net/ice/ice_switch_filter.c
>+++ b/drivers/net/ice/ice_switch_filter.c
>@@ -926,7 +926,7 @@ ice_switch_parse_action(struct ice_pf *pf,
> 	uint16_t valid_qgrop_number[MAX_QGRP_NUM_TYPE] = {
> 		 2, 4, 8, 16, 32, 64, 128};
> 
>-	base_queue = pf->base_queue;
>+	base_queue = pf->base_queue + vsi->base_queue;
> 	for (action = actions; action->type !=
> 			RTE_FLOW_ACTION_TYPE_END; action++) {
> 		action_type = action->type;
>-- 
>2.7.5
>

Reviewed-by: Xiaolong Ye <xiaolong.ye@intel.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] [PATCH] net/ice: fix queue index for switch filter
  2019-10-22  6:39 [dpdk-dev] [PATCH] net/ice: fix queue index for switch filter Wei Zhao
  2019-10-22  7:15 ` [dpdk-dev] [PATCH v2] " Wei Zhao
  2019-10-22  7:41 ` [dpdk-dev] [PATCH] " Ye Xiaolong
@ 2019-10-22  7:45 ` Ye Xiaolong
  2 siblings, 0 replies; 4+ messages in thread
From: Ye Xiaolong @ 2019-10-22  7:45 UTC (permalink / raw)
  To: Wei Zhao; +Cc: dev, stable

On 10/22, Wei Zhao wrote:
>When calculate queue index for queue action in
>switch filter, vsi base queue should be included.
>
>Cc: stable@dpdk.org
>Fixes: 24dc00c30907 ("net/ice: enable switch filter")
>
>Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
>---
> drivers/net/ice/ice_switch_filter.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/drivers/net/ice/ice_switch_filter.c b/drivers/net/ice/ice_switch_filter.c
>index 6c96b6f..e1eaf91 100644
>--- a/drivers/net/ice/ice_switch_filter.c
>+++ b/drivers/net/ice/ice_switch_filter.c
>@@ -926,7 +926,7 @@ ice_switch_parse_action(struct ice_pf *pf,
> 	uint16_t valid_qgrop_number[MAX_QGRP_NUM_TYPE] = {
> 		 2, 4, 8, 16, 32, 64, 128};
> 
>-	base_queue = pf->base_queue;
>+	base_queue = pf->base_queue + vsi->base_queue;
> 	for (action = actions; action->type !=
> 			RTE_FLOW_ACTION_TYPE_END; action++) {
> 		action_type = action->type;
>-- 
>2.7.5
>

Applied to dpdk-next-net-intel.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-10-22  7:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-22  6:39 [dpdk-dev] [PATCH] net/ice: fix queue index for switch filter Wei Zhao
2019-10-22  7:15 ` [dpdk-dev] [PATCH v2] " Wei Zhao
2019-10-22  7:41 ` [dpdk-dev] [PATCH] " Ye Xiaolong
2019-10-22  7:45 ` Ye Xiaolong

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).