From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id F207042A02;
	Wed, 26 Apr 2023 12:29:00 +0200 (CEST)
Received: from mails.dpdk.org (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id C0B2542D63;
	Wed, 26 Apr 2023 12:28:14 +0200 (CEST)
Received: from mga17.intel.com (mga17.intel.com [192.55.52.151])
 by mails.dpdk.org (Postfix) with ESMTP id 4118442D48;
 Wed, 26 Apr 2023 12:28:11 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;
 d=intel.com; i=@intel.com; q=dns/txt; s=Intel;
 t=1682504891; x=1714040891;
 h=from:to:cc:subject:date:message-id:in-reply-to:
 references:mime-version:content-transfer-encoding;
 bh=gq0E3LQAyGXnJtOa4/lFTTRiQOjr+yHdJInVYOZb1/Q=;
 b=PCltyx3Ep6P61u/2gb037tiMYH1OHrYVxkG9DSbYpBeIc/yx6SdXIqx8
 pB0kkoct4xtBkPAB+g0S1yRILayUVtcogdR3t8WzM4D2YSnRlen45GtiK
 NmscdMBm00lRyiuu4R2mzBfwKtI0htZTjiIw/uV5eNshI675l46DScgpB
 nknK03JZHFiY1gKI0zuVo/yRwJO8NfjUmZIIRIqVGswOiIgXLy2GB4kTi
 wbo2lYZo4/HtIqQJet15egOOYHw+H2oB0YwPbUQlLuJY6bypklUkE+cZp
 HXDu5qYL63ykMZNuNLBgRGo90DlFwkkyYnST767XlTk3nNVQykv9GsDLh g==;
X-IronPort-AV: E=McAfee;i="6600,9927,10691"; a="327391547"
X-IronPort-AV: E=Sophos;i="5.99,227,1677571200"; d="scan'208";a="327391547"
Received: from fmsmga005.fm.intel.com ([10.253.24.32])
 by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;
 26 Apr 2023 03:28:10 -0700
X-ExtLoop1: 1
X-IronPort-AV: E=McAfee;i="6600,9927,10691"; a="1023552729"
X-IronPort-AV: E=Sophos;i="5.99,227,1677571200"; d="scan'208";a="1023552729"
Received: from dpdk-wenjing-01.sh.intel.com ([10.67.118.239])
 by fmsmga005.fm.intel.com with ESMTP; 26 Apr 2023 03:28:08 -0700
From: Wenjing Qiao <wenjing.qiao@intel.com>
To: jingjing.wu@intel.com,
	beilei.xing@intel.com,
	qi.z.zhang@intel.com
Cc: dev@dpdk.org, mingxia.liu@intel.com, Wenjing Qiao <wenjing.qiao@intel.com>,
 stable@dpdk.org, Christopher Pau <christopher.pau@intel.com>
Subject: [PATCH v3 09/15] common/idpf/base: fix idpf_send_msg_to_cp prototypes
Date: Wed, 26 Apr 2023 06:22:53 -0400
Message-Id: <20230426102259.205992-10-wenjing.qiao@intel.com>
X-Mailer: git-send-email 2.25.1
In-Reply-To: <20230426102259.205992-1-wenjing.qiao@intel.com>
References: <20230421084043.135503-2-wenjing.qiao@intel.com>
 <20230426102259.205992-1-wenjing.qiao@intel.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org

Virtchnl2 opcodes are no longer in the enum virtchnl_ops. So change
these parameters to allow int rather that compiler enum type checking.

Fixes: fb4ac04e9bfa ("common/idpf: introduce common library")
Cc: stable@dpdk.org

Signed-off-by: Christopher Pau <christopher.pau@intel.com>
Signed-off-by: Wenjing Qiao <wenjing.qiao@intel.com>
---
 drivers/common/idpf/base/idpf_common.c    | 2 +-
 drivers/common/idpf/base/idpf_prototype.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/common/idpf/base/idpf_common.c b/drivers/common/idpf/base/idpf_common.c
index 41e0d05623..2394f85580 100644
--- a/drivers/common/idpf/base/idpf_common.c
+++ b/drivers/common/idpf/base/idpf_common.c
@@ -146,7 +146,7 @@ int idpf_init_hw(struct idpf_hw *hw, struct idpf_ctlq_size ctlq_size)
  * is sent asynchronously, i.e. idpf_asq_send_command() does not wait for
  * completion before returning.
  */
-int idpf_send_msg_to_cp(struct idpf_hw *hw, enum virtchnl_ops v_opcode,
+int idpf_send_msg_to_cp(struct idpf_hw *hw, int v_opcode,
 			int v_retval, u8 *msg, u16 msglen)
 {
 	struct idpf_ctlq_msg ctlq_msg = { 0 };
diff --git a/drivers/common/idpf/base/idpf_prototype.h b/drivers/common/idpf/base/idpf_prototype.h
index 3090f4cc2a..c9812a7f94 100644
--- a/drivers/common/idpf/base/idpf_prototype.h
+++ b/drivers/common/idpf/base/idpf_prototype.h
@@ -40,6 +40,6 @@ int idpf_set_rss_key(struct idpf_hw *hw, u16 seid,
 int idpf_set_mac_type(struct idpf_hw *hw);
 
 int idpf_reset(struct idpf_hw *hw);
-int idpf_send_msg_to_cp(struct idpf_hw *hw, enum virtchnl_ops v_opcode,
+int idpf_send_msg_to_cp(struct idpf_hw *hw, int v_opcode,
 			int v_retval, u8 *msg, u16 msglen);
 #endif /* _IDPF_PROTOTYPE_H_ */
-- 
2.25.1