[v1,2/5] common/idpf/base: refine idpf ctlq message structure

Message ID 20230812075506.361769-3-yuying.zhang@intel.com (mailing list archive)
State Superseded, archived
Delegated to: Qi Zhang
Headers
Series add rte flow support for cpfl |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Zhang, Yuying Aug. 12, 2023, 7:55 a.m. UTC
  Add cfg data in idpf_ctlq_msg.

Signed-off-by: Yuying Zhang <yuying.zhang@intel.com>
---
 drivers/common/idpf/base/idpf_controlq_api.h | 3 +++
 1 file changed, 3 insertions(+)
  

Comments

Xing, Beilei Aug. 25, 2023, 5:55 a.m. UTC | #1
> -----Original Message-----
> From: Zhang, Yuying <yuying.zhang@intel.com>
> Sent: Saturday, August 12, 2023 3:55 PM
> To: dev@dpdk.org; Xing, Beilei <beilei.xing@intel.com>; Zhang, Qi Z
> <qi.z.zhang@intel.com>; Wu, Jingjing <jingjing.wu@intel.com>
> Cc: Zhang, Yuying <yuying.zhang@intel.com>
> Subject: [PATCH v1 2/5] common/idpf/base: refine idpf ctlq message structure
> 
> Add cfg data in idpf_ctlq_msg.

Could you detail the commit log to describe why we need this field?

> 
> Signed-off-by: Yuying Zhang <yuying.zhang@intel.com>
> ---
>  drivers/common/idpf/base/idpf_controlq_api.h | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/common/idpf/base/idpf_controlq_api.h
> b/drivers/common/idpf/base/idpf_controlq_api.h
> index 3780304256..b38b10465c 100644
> --- a/drivers/common/idpf/base/idpf_controlq_api.h
> +++ b/drivers/common/idpf/base/idpf_controlq_api.h
> @@ -65,6 +65,9 @@ struct idpf_ctlq_msg {
>  			u32 chnl_opcode;
>  			u32 chnl_retval;
>  		} mbx;
> +		struct {
> +			u64 data;
> +		} cfg;
>  	} cookie;
>  	union {
>  #define IDPF_DIRECT_CTX_SIZE	16
> --
> 2.25.1
  

Patch

diff --git a/drivers/common/idpf/base/idpf_controlq_api.h b/drivers/common/idpf/base/idpf_controlq_api.h
index 3780304256..b38b10465c 100644
--- a/drivers/common/idpf/base/idpf_controlq_api.h
+++ b/drivers/common/idpf/base/idpf_controlq_api.h
@@ -65,6 +65,9 @@  struct idpf_ctlq_msg {
 			u32 chnl_opcode;
 			u32 chnl_retval;
 		} mbx;
+		struct {
+			u64 data;
+		} cfg;
 	} cookie;
 	union {
 #define IDPF_DIRECT_CTX_SIZE	16