From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3AE2641E37; Thu, 9 Mar 2023 04:37:15 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2DBC840ED7; Thu, 9 Mar 2023 04:37:15 +0100 (CET) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 41BD240A7E for ; Thu, 9 Mar 2023 04:37:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678333034; x=1709869034; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=p0FyK+y6ee4ps1i5kot+i7O5D/TquR9Wuih5IG+psfk=; b=HaxStoIyB5KWg779dRoQjQCaYAdzJWqPlPUGn8L429enFzU+L/OnrgdM X+DI2CE2qwNH6BJxrMSUQIHuReQxZrJi4M7jgzkiFDBa/42St60ggsGmH 7ToDd0Tskfsmmry8eFxzjpHhQpEfXJi7zi101y13/QPKhby5+onZxq80d CYgZRF2XApVZQMK2lbyZsqDeLdX+8ghhD5h56g0QVZ8bgFu+P5Ox3e4rT BMEvkgLGdTj92cuv2KmvQi5eMDLPShcuIUuGXacfXclYl1NaldHNuLaL8 OoZRC68arXoAnhDcAbpTC/a0uu/X0M35axJLYEr3ZcJ58hyd0zB05hS0E Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10643"; a="398922558" X-IronPort-AV: E=Sophos;i="5.98,245,1673942400"; d="scan'208";a="398922558" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Mar 2023 19:37:13 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10643"; a="741382890" X-IronPort-AV: E=Sophos;i="5.98,245,1673942400"; d="scan'208";a="741382890" Received: from dpdk-mingxial-ice.sh.intel.com ([10.67.110.153]) by fmsmga008.fm.intel.com with ESMTP; 08 Mar 2023 19:37:11 -0800 From: Mingxia Liu To: dev@dpdk.org Cc: jingjing.wu@intel.com, beilei.xing@intel.com, Mingxia Liu Subject: [PATCH] net/idpf: fix a compiler issue about virtchnl opcode Date: Thu, 9 Mar 2023 11:52:19 +0000 Message-Id: <20230309115219.278021-1-mingxia.liu@intel.com> X-Mailer: git-send-email 2.34.1 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Comparing an enum virtchnl_ops variable with VIRTCHNL2_OP_EVENT will cause a compiler issue, as VIRTCHNL2_OP_EVENT is not included in enum virtchnl_ops. And the PMD uses virtual msg opcodes prefixed with virtchnl2 or VIRTCHNL2. Fixes: 78049b3dc7e6 ("net/idpf: add alarm to handle virtual channel message") Signed-off-by: Mingxia Liu --- drivers/net/idpf/idpf_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/idpf/idpf_ethdev.c b/drivers/net/idpf/idpf_ethdev.c index db58157ba3..46aec6ae37 100644 --- a/drivers/net/idpf/idpf_ethdev.c +++ b/drivers/net/idpf/idpf_ethdev.c @@ -1058,8 +1058,8 @@ idpf_handle_virtchnl_msg(struct idpf_adapter_ext *adapter_ex) struct idpf_ctlq_msg ctlq_msg; enum idpf_mbx_opc mbx_op; struct idpf_vport *vport; - enum virtchnl_ops vc_op; uint16_t pending = 1; + uint32_t vc_op; int ret; while (pending) { -- 2.34.1