DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] net/ice: init dvm mode for parser
@ 2023-05-26 19:21 Qi Zhang
  2023-05-29  2:10 ` Zeng, ZhichaoX
  0 siblings, 1 reply; 3+ messages in thread
From: Qi Zhang @ 2023-05-26 19:21 UTC (permalink / raw)
  To: junfeng.guo; +Cc: qiming.yang, dev, Qi Zhang, stable

Double Vlan mode need to be configured for parser
Otherwise parser result will not be consistent with hardware.

Fixes: 531d2555c8a6 ("net/ice: refactor parser usage")
Cc: stable@dpdk.org

Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
---
 drivers/net/ice/ice_generic_flow.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/net/ice/ice_generic_flow.c b/drivers/net/ice/ice_generic_flow.c
index 86a32f8cb1..ed3075d555 100644
--- a/drivers/net/ice/ice_generic_flow.c
+++ b/drivers/net/ice/ice_generic_flow.c
@@ -1836,6 +1836,11 @@ ice_flow_init(struct ice_adapter *ad)
 	if (ice_parser_create(&ad->hw, &ad->psr) != ICE_SUCCESS)
 		PMD_INIT_LOG(WARNING, "Failed to initialize DDP parser, raw packet filter will not be supported");
 
+	if (ice_is_dvm_ena(&ad->hw))
+		ice_parser_dvm_set(ad->psr, true);
+	else
+		ice_parser_dvm_set(ad->psr, false);
+
 	RTE_TAILQ_FOREACH_SAFE(engine, &engine_list, node, temp) {
 		if (engine->init == NULL) {
 			PMD_INIT_LOG(ERR, "Invalid engine type (%d)",
-- 
2.31.1


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

* RE: [PATCH] net/ice: init dvm mode for parser
  2023-05-26 19:21 [PATCH] net/ice: init dvm mode for parser Qi Zhang
@ 2023-05-29  2:10 ` Zeng, ZhichaoX
  2023-05-29  2:32   ` Zhang, Qi Z
  0 siblings, 1 reply; 3+ messages in thread
From: Zeng, ZhichaoX @ 2023-05-29  2:10 UTC (permalink / raw)
  To: Zhang, Qi Z, Guo, Junfeng; +Cc: Yang, Qiming, dev, Zhang, Qi Z, stable



> -----Original Message-----
> From: Qi Zhang <qi.z.zhang@intel.com>
> Sent: Saturday, May 27, 2023 3:21 AM
> To: Guo, Junfeng <junfeng.guo@intel.com>
> Cc: Yang, Qiming <qiming.yang@intel.com>; dev@dpdk.org; Zhang, Qi Z
> <qi.z.zhang@intel.com>; stable@dpdk.org
> Subject: [PATCH] net/ice: init dvm mode for parser
> 
> Double Vlan mode need to be configured for parser Otherwise parser result
> will not be consistent with hardware.
> 
> Fixes: 531d2555c8a6 ("net/ice: refactor parser usage")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
> ---
>  drivers/net/ice/ice_generic_flow.c | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/drivers/net/ice/ice_generic_flow.c
> b/drivers/net/ice/ice_generic_flow.c
> index 86a32f8cb1..ed3075d555 100644
> --- a/drivers/net/ice/ice_generic_flow.c
> +++ b/drivers/net/ice/ice_generic_flow.c

Verified and passed.

Tested-by: Zhichao Zeng <zhichaox.zeng@intel.com>


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

* RE: [PATCH] net/ice: init dvm mode for parser
  2023-05-29  2:10 ` Zeng, ZhichaoX
@ 2023-05-29  2:32   ` Zhang, Qi Z
  0 siblings, 0 replies; 3+ messages in thread
From: Zhang, Qi Z @ 2023-05-29  2:32 UTC (permalink / raw)
  To: Zeng, ZhichaoX, Guo, Junfeng; +Cc: Yang, Qiming, dev, stable



> -----Original Message-----
> From: Zeng, ZhichaoX <zhichaox.zeng@intel.com>
> Sent: Monday, May 29, 2023 10:11 AM
> To: Zhang, Qi Z <qi.z.zhang@intel.com>; Guo, Junfeng
> <junfeng.guo@intel.com>
> Cc: Yang, Qiming <qiming.yang@intel.com>; dev@dpdk.org; Zhang, Qi Z
> <qi.z.zhang@intel.com>; stable@dpdk.org
> Subject: RE: [PATCH] net/ice: init dvm mode for parser
> 
> 
> 
> > -----Original Message-----
> > From: Qi Zhang <qi.z.zhang@intel.com>
> > Sent: Saturday, May 27, 2023 3:21 AM
> > To: Guo, Junfeng <junfeng.guo@intel.com>
> > Cc: Yang, Qiming <qiming.yang@intel.com>; dev@dpdk.org; Zhang, Qi Z
> > <qi.z.zhang@intel.com>; stable@dpdk.org
> > Subject: [PATCH] net/ice: init dvm mode for parser
> >
> > Double Vlan mode need to be configured for parser Otherwise parser
> > result will not be consistent with hardware.
> >
> > Fixes: 531d2555c8a6 ("net/ice: refactor parser usage")
> > Cc: stable@dpdk.org
> >
> > Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
> > ---
> >  drivers/net/ice/ice_generic_flow.c | 5 +++++
> >  1 file changed, 5 insertions(+)
> >
> > diff --git a/drivers/net/ice/ice_generic_flow.c
> > b/drivers/net/ice/ice_generic_flow.c
> > index 86a32f8cb1..ed3075d555 100644
> > --- a/drivers/net/ice/ice_generic_flow.c
> > +++ b/drivers/net/ice/ice_generic_flow.c
> 
> Verified and passed.
> 
> Tested-by: Zhichao Zeng <zhichaox.zeng@intel.com>

Applied to dpdk-next-net-intel.

Thanks
Qi


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

end of thread, other threads:[~2023-05-29  2:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-26 19:21 [PATCH] net/ice: init dvm mode for parser Qi Zhang
2023-05-29  2:10 ` Zeng, ZhichaoX
2023-05-29  2:32   ` 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).