DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] net/ixgbe: fix error of drop queue index
@ 2022-11-07  8:48 kevin-intel
  2022-11-08  1:07 ` Zhang, Qi Z
  2022-11-11  6:39 ` [PATCH v2] " Kaiwen Deng
  0 siblings, 2 replies; 4+ messages in thread
From: kevin-intel @ 2022-11-07  8:48 UTC (permalink / raw)
  To: dev
  Cc: yidingx.zhou, kevin-intel, Qiming Yang, Wenjun Wu,
	Andrew Rybchenko, Dongdong Liu

The drop queue index was not set when adding internal Flow
Director Configuration copy in ixgbe device private data.
Therefore dropped packets would be received by queue 0
which is set to drop queue.

This commit sets drop queue index as IXGBE_FDIR_DROP_QUEUE
to fix this issue.

Fixes: 5007ac13189d ("ethdev: remove deprecated Flow Director configuration")

Signed-off-by: kevin-intel <kaiwenx.deng@intel.com>
---
 drivers/net/ixgbe/ixgbe_flow.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ixgbe/ixgbe_flow.c b/drivers/net/ixgbe/ixgbe_flow.c
index 1250c2dc12..110ff34fcc 100644
--- a/drivers/net/ixgbe/ixgbe_flow.c
+++ b/drivers/net/ixgbe/ixgbe_flow.c
@@ -2759,6 +2759,7 @@ ixgbe_parse_fdir_filter(struct rte_eth_dev *dev,
 	int ret;
 	struct ixgbe_hw *hw = IXGBE_DEV_PRIVATE_TO_HW(dev->data->dev_private);
 	struct rte_eth_fdir_conf *fdir_conf = IXGBE_DEV_FDIR_CONF(dev);
+	fdir_conf->drop_queue = IXGBE_FDIR_DROP_QUEUE;
 
 	if (hw->mac.type != ixgbe_mac_82599EB &&
 		hw->mac.type != ixgbe_mac_X540 &&
-- 
2.34.1


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

* RE: [PATCH] net/ixgbe: fix error of drop queue index
  2022-11-07  8:48 [PATCH] net/ixgbe: fix error of drop queue index kevin-intel
@ 2022-11-08  1:07 ` Zhang, Qi Z
  2022-11-11  6:39 ` [PATCH v2] " Kaiwen Deng
  1 sibling, 0 replies; 4+ messages in thread
From: Zhang, Qi Z @ 2022-11-08  1:07 UTC (permalink / raw)
  To: Deng, KaiwenX, dev
  Cc: Zhou, YidingX, Deng, KaiwenX, Yang, Qiming, Wu, Wenjun1,
	Andrew Rybchenko, Dongdong Liu



> -----Original Message-----
> From: kevin-intel <kaiwenx.deng@intel.com>
> Sent: Monday, November 7, 2022 4:49 PM
> To: dev@dpdk.org
> Cc: Zhou, YidingX <yidingx.zhou@intel.com>; Deng, KaiwenX
> <kaiwenx.deng@intel.com>; Yang, Qiming <qiming.yang@intel.com>; Wu,
> Wenjun1 <wenjun1.wu@intel.com>; Andrew Rybchenko
> <andrew.rybchenko@oktetlabs.ru>; Dongdong Liu
> <liudongdong3@huawei.com>
> Subject: [PATCH] net/ixgbe: fix error of drop queue index
> 
> The drop queue index was not set when adding internal Flow Director
> Configuration copy in ixgbe device private data.
> Therefore dropped packets would be received by queue 0 which is set to
> drop queue.
> 
> This commit sets drop queue index as IXGBE_FDIR_DROP_QUEUE to fix this
> issue.
> 
> Fixes: 5007ac13189d ("ethdev: remove deprecated Flow Director
> configuration")
> 
> Signed-off-by: kevin-intel <kaiwenx.deng@intel.com>

No need to add company name in your signed-off name.
I assume it should be 
Kaiwen Deng <kaiwenx.deng@intel.com>

> ---
>  drivers/net/ixgbe/ixgbe_flow.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/net/ixgbe/ixgbe_flow.c b/drivers/net/ixgbe/ixgbe_flow.c
> index 1250c2dc12..110ff34fcc 100644
> --- a/drivers/net/ixgbe/ixgbe_flow.c
> +++ b/drivers/net/ixgbe/ixgbe_flow.c
> @@ -2759,6 +2759,7 @@ ixgbe_parse_fdir_filter(struct rte_eth_dev *dev,
>  	int ret;
>  	struct ixgbe_hw *hw = IXGBE_DEV_PRIVATE_TO_HW(dev->data-
> >dev_private);
>  	struct rte_eth_fdir_conf *fdir_conf = IXGBE_DEV_FDIR_CONF(dev);
> +	fdir_conf->drop_queue = IXGBE_FDIR_DROP_QUEUE;

The expected drop action is to drop packet, there is NO "drop queue" in the generic flow APIs
if you want to steer packet to queue 0, just use rte_flow_action_queue with queue 0
What's the gap?

> 
>  	if (hw->mac.type != ixgbe_mac_82599EB &&
>  		hw->mac.type != ixgbe_mac_X540 &&
> --
> 2.34.1


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

* [PATCH v2] net/ixgbe: fix error of drop queue index
  2022-11-07  8:48 [PATCH] net/ixgbe: fix error of drop queue index kevin-intel
  2022-11-08  1:07 ` Zhang, Qi Z
@ 2022-11-11  6:39 ` Kaiwen Deng
  2022-11-11  8:56   ` Zhang, Qi Z
  1 sibling, 1 reply; 4+ messages in thread
From: Kaiwen Deng @ 2022-11-11  6:39 UTC (permalink / raw)
  To: dev
  Cc: qiming.yang, yidingx.zhou, Kaiwen Deng, Haiyue Wang,
	Dongdong Liu, Andrew Rybchenko

The drop queue index was not set when adding internal Flow
Director Configuration copy in ixgbe device private data.
Therefore dropped packets would be received by queue 0
which is set to drop queue.

This commit sets drop queue index as IXGBE_FDIR_DROP_QUEUE
to fix this issue.

Fixes: 5007ac13189d ("ethdev: remove deprecated Flow Director configuration")

Signed-off-by: Kaiwen Deng <kaiwenx.deng@intel.com>
---
 drivers/net/ixgbe/ixgbe_flow.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ixgbe/ixgbe_flow.c b/drivers/net/ixgbe/ixgbe_flow.c
index 1250c2dc12..110ff34fcc 100644
--- a/drivers/net/ixgbe/ixgbe_flow.c
+++ b/drivers/net/ixgbe/ixgbe_flow.c
@@ -2759,6 +2759,7 @@ ixgbe_parse_fdir_filter(struct rte_eth_dev *dev,
 	int ret;
 	struct ixgbe_hw *hw = IXGBE_DEV_PRIVATE_TO_HW(dev->data->dev_private);
 	struct rte_eth_fdir_conf *fdir_conf = IXGBE_DEV_FDIR_CONF(dev);
+	fdir_conf->drop_queue = IXGBE_FDIR_DROP_QUEUE;
 
 	if (hw->mac.type != ixgbe_mac_82599EB &&
 		hw->mac.type != ixgbe_mac_X540 &&
-- 
2.34.1


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

* RE: [PATCH v2] net/ixgbe: fix error of drop queue index
  2022-11-11  6:39 ` [PATCH v2] " Kaiwen Deng
@ 2022-11-11  8:56   ` Zhang, Qi Z
  0 siblings, 0 replies; 4+ messages in thread
From: Zhang, Qi Z @ 2022-11-11  8:56 UTC (permalink / raw)
  To: Deng, KaiwenX, dev
  Cc: Yang, Qiming, Zhou, YidingX, Deng, KaiwenX, Wang, Haiyue,
	Dongdong Liu, Andrew Rybchenko



> -----Original Message-----
> From: Kaiwen Deng <kaiwenx.deng@intel.com>
> Sent: Friday, November 11, 2022 2:39 PM
> To: dev@dpdk.org
> Cc: Yang, Qiming <qiming.yang@intel.com>; Zhou, YidingX
> <yidingx.zhou@intel.com>; Deng, KaiwenX <kaiwenx.deng@intel.com>;
> Wang, Haiyue <haiyue.wang@intel.com>; Dongdong Liu
> <liudongdong3@huawei.com>; Andrew Rybchenko
> <andrew.rybchenko@oktetlabs.ru>
> Subject: [PATCH v2] net/ixgbe: fix error of drop queue index
> 
> The drop queue index was not set when adding internal Flow Director
> Configuration copy in ixgbe device private data.
> Therefore dropped packets would be received by queue 0 which is set to
> drop queue.
> 
> This commit sets drop queue index as IXGBE_FDIR_DROP_QUEUE to fix this
> issue.
> 
> Fixes: 5007ac13189d ("ethdev: remove deprecated Flow Director
> configuration")
> 
> Signed-off-by: Kaiwen Deng <kaiwenx.deng@intel.com>

Acked-by: Qi Zhang <qi.z.zhang@intel.com>

Applied to dpdk-next-net-intel.

Thanks
Qi


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

end of thread, other threads:[~2022-11-11  8:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-07  8:48 [PATCH] net/ixgbe: fix error of drop queue index kevin-intel
2022-11-08  1:07 ` Zhang, Qi Z
2022-11-11  6:39 ` [PATCH v2] " Kaiwen Deng
2022-11-11  8:56   ` Zhang, Qi Z

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