Skip to contentSkip to conversation

i40e: Fix an icc compile error

PATCH In review Chen Jing D(Mark) 2 participants 2 messages Jun 23, 2014 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i40e: Fix an icc compile error

From: "Chen Jing D(Mark)" <[email protected]>

Make a cast on variable to fix the ICC compile error.

---
 lib/librte_pmd_i40e/i40e_ethdev_vf.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
lib/librte_pmd_i40e/i40e_ethdev_vf.c +2 -2
index 9e86285..b9c1483 100644
@@ -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;
Signature · 1 line
1.7.7.6

A message that is not in the archive (sent off-list or not yet received): 1403502585-11802-1-git-send-email-jing.d.chen-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org