From: Chen Jing D(Mark) Date: Mon, 23 Jun 2014 05:49:45 +0000 (+0800) Subject: i40e: fix build with icc X-Git-Tag: spdx-start~10611 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=66dda4bd4b50ffadeff493b21f11e44353c69de7;p=dpdk.git i40e: fix build with icc Cast constant to fix the ICC compilation error introduced in commit 2b12431b5369ca06d43ea (add vlan stripping and insertion to VF) Signed-off-by: Chen Jing D(Mark) Acked-by: Thomas Monjalon --- diff --git a/lib/librte_pmd_i40e/i40e_ethdev_vf.c b/lib/librte_pmd_i40e/i40e_ethdev_vf.c index 9e862859c4..b9c1483f9a 100644 --- a/lib/librte_pmd_i40e/i40e_ethdev_vf.c +++ b/lib/librte_pmd_i40e/i40e_ethdev_vf.c @@ -471,7 +471,7 @@ i40evf_config_vlan_offload(struct rte_eth_dev *dev, offload.vsi_id = vf->vsi_res->vsi_id; offload.enable_vlan_strip = enable_vlan_strip; - args.ops = I40E_VIRTCHNL_OP_CFG_VLAN_OFFLOAD; + args.ops = (enum i40e_virtchnl_ops)I40E_VIRTCHNL_OP_CFG_VLAN_OFFLOAD; args.in_args = (uint8_t *)&offload; args.in_args_size = sizeof(offload); args.out_buffer = cmd_result_buffer; @@ -502,7 +502,7 @@ i40evf_config_vlan_pvid(struct rte_eth_dev *dev, tpid_info.vsi_id = vf->vsi_res->vsi_id; (void)rte_memcpy(&tpid_info.info, info, sizeof(*info)); - args.ops = I40E_VIRTCHNL_OP_CFG_VLAN_PVID; + args.ops = (enum i40e_virtchnl_ops)I40E_VIRTCHNL_OP_CFG_VLAN_PVID; args.in_args = (uint8_t *)&tpid_info; args.in_args_size = sizeof(tpid_info); args.out_buffer = cmd_result_buffer;