* [dpdk-dev] [PATCH] i40e: Fix an icc compile error
@ 2014-06-23 5:49 Chen Jing D(Mark)
2014-06-23 15:09 ` Thomas Monjalon
0 siblings, 1 reply; 2+ messages in thread
From: Chen Jing D(Mark) @ 2014-06-23 5:49 UTC (permalink / raw)
To: dev
From: "Chen Jing D(Mark)" <jing.d.chen@intel.com>
Make a cast on variable to fix the ICC compile error.
Signed-off-by: Chen Jing D(Mark) <jing.d.chen@intel.com>
---
lib/librte_pmd_i40e/i40e_ethdev_vf.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/librte_pmd_i40e/i40e_ethdev_vf.c b/lib/librte_pmd_i40e/i40e_ethdev_vf.c
index 9e86285..b9c1483 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;
--
1.7.7.6
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dpdk-dev] [PATCH] i40e: Fix an icc compile error
2014-06-23 5:49 [dpdk-dev] [PATCH] i40e: Fix an icc compile error Chen Jing D(Mark)
@ 2014-06-23 15:09 ` Thomas Monjalon
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Monjalon @ 2014-06-23 15:09 UTC (permalink / raw)
To: Chen Jing D(Mark); +Cc: dev
> Make a cast on variable to fix the ICC compile error.
>
> Signed-off-by: Chen Jing D(Mark) <jing.d.chen@intel.com>
Applied for version 1.7.0.
Thanks for quick fixing.
--
Thomas
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-06-23 15:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-23 5:49 [dpdk-dev] [PATCH] i40e: Fix an icc compile error Chen Jing D(Mark)
2014-06-23 15:09 ` Thomas Monjalon
DPDK patches and discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://inbox.dpdk.org/dev/0 dev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 dev dev/ https://inbox.dpdk.org/dev \
dev@dpdk.org
public-inbox-index dev
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://inbox.dpdk.org/inbox.dpdk.dev
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git