net/ixgbe: remove unnecessary void casts
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Reviewed-by: Kirill Rybalchenko <kirill.rybalchenko@intel.com>
This commit is contained in:
parent
1910eb50db
commit
3720d3d7a0
@ -6360,7 +6360,7 @@ ixgbe_add_del_ntuple_filter(struct rte_eth_dev *dev,
|
||||
sizeof(struct ixgbe_5tuple_filter), 0);
|
||||
if (filter == NULL)
|
||||
return -ENOMEM;
|
||||
(void)rte_memcpy(&filter->filter_info,
|
||||
rte_memcpy(&filter->filter_info,
|
||||
&filter_5tuple,
|
||||
sizeof(struct ixgbe_5tuple_filter_info));
|
||||
filter->queue = ntuple_filter->queue;
|
||||
@ -7576,7 +7576,7 @@ ixgbe_dev_l2_tunnel_filter_add(struct rte_eth_dev *dev,
|
||||
if (!node)
|
||||
return -ENOMEM;
|
||||
|
||||
(void)rte_memcpy(&node->key,
|
||||
rte_memcpy(&node->key,
|
||||
&key,
|
||||
sizeof(struct ixgbe_l2_tn_key));
|
||||
node->pool = l2_tunnel->pool;
|
||||
|
@ -1348,7 +1348,7 @@ ixgbe_fdir_filter_program(struct rte_eth_dev *dev,
|
||||
0);
|
||||
if (!node)
|
||||
return -ENOMEM;
|
||||
(void)rte_memcpy(&node->ixgbe_fdir,
|
||||
rte_memcpy(&node->ixgbe_fdir,
|
||||
&rule->ixgbe_fdir,
|
||||
sizeof(union ixgbe_atr_input));
|
||||
node->fdirflags = fdircmd_flags;
|
||||
|
@ -2711,7 +2711,7 @@ ixgbe_flow_create(struct rte_eth_dev *dev,
|
||||
PMD_DRV_LOG(ERR, "failed to allocate memory");
|
||||
goto out;
|
||||
}
|
||||
(void)rte_memcpy(&ntuple_filter_ptr->filter_info,
|
||||
rte_memcpy(&ntuple_filter_ptr->filter_info,
|
||||
&ntuple_filter,
|
||||
sizeof(struct rte_eth_ntuple_filter));
|
||||
TAILQ_INSERT_TAIL(&filter_ntuple_list,
|
||||
@ -2737,7 +2737,7 @@ ixgbe_flow_create(struct rte_eth_dev *dev,
|
||||
PMD_DRV_LOG(ERR, "failed to allocate memory");
|
||||
goto out;
|
||||
}
|
||||
(void)rte_memcpy(ðertype_filter_ptr->filter_info,
|
||||
rte_memcpy(ðertype_filter_ptr->filter_info,
|
||||
ðertype_filter,
|
||||
sizeof(struct rte_eth_ethertype_filter));
|
||||
TAILQ_INSERT_TAIL(&filter_ethertype_list,
|
||||
@ -2761,7 +2761,7 @@ ixgbe_flow_create(struct rte_eth_dev *dev,
|
||||
PMD_DRV_LOG(ERR, "failed to allocate memory");
|
||||
goto out;
|
||||
}
|
||||
(void)rte_memcpy(&syn_filter_ptr->filter_info,
|
||||
rte_memcpy(&syn_filter_ptr->filter_info,
|
||||
&syn_filter,
|
||||
sizeof(struct rte_eth_syn_filter));
|
||||
TAILQ_INSERT_TAIL(&filter_syn_list,
|
||||
@ -2825,7 +2825,7 @@ ixgbe_flow_create(struct rte_eth_dev *dev,
|
||||
PMD_DRV_LOG(ERR, "failed to allocate memory");
|
||||
goto out;
|
||||
}
|
||||
(void)rte_memcpy(&fdir_rule_ptr->filter_info,
|
||||
rte_memcpy(&fdir_rule_ptr->filter_info,
|
||||
&fdir_rule,
|
||||
sizeof(struct ixgbe_fdir_rule));
|
||||
TAILQ_INSERT_TAIL(&filter_fdir_list,
|
||||
@ -2862,7 +2862,7 @@ ixgbe_flow_create(struct rte_eth_dev *dev,
|
||||
PMD_DRV_LOG(ERR, "failed to allocate memory");
|
||||
goto out;
|
||||
}
|
||||
(void)rte_memcpy(&l2_tn_filter_ptr->filter_info,
|
||||
rte_memcpy(&l2_tn_filter_ptr->filter_info,
|
||||
&l2_tn_filter,
|
||||
sizeof(struct rte_eth_l2_tunnel_conf));
|
||||
TAILQ_INSERT_TAIL(&filter_l2_tunnel_list,
|
||||
@ -2961,7 +2961,7 @@ ixgbe_flow_destroy(struct rte_eth_dev *dev,
|
||||
case RTE_ETH_FILTER_NTUPLE:
|
||||
ntuple_filter_ptr = (struct ixgbe_ntuple_filter_ele *)
|
||||
pmd_flow->rule;
|
||||
(void)rte_memcpy(&ntuple_filter,
|
||||
rte_memcpy(&ntuple_filter,
|
||||
&ntuple_filter_ptr->filter_info,
|
||||
sizeof(struct rte_eth_ntuple_filter));
|
||||
ret = ixgbe_add_del_ntuple_filter(dev, &ntuple_filter, FALSE);
|
||||
@ -2974,7 +2974,7 @@ ixgbe_flow_destroy(struct rte_eth_dev *dev,
|
||||
case RTE_ETH_FILTER_ETHERTYPE:
|
||||
ethertype_filter_ptr = (struct ixgbe_ethertype_filter_ele *)
|
||||
pmd_flow->rule;
|
||||
(void)rte_memcpy(ðertype_filter,
|
||||
rte_memcpy(ðertype_filter,
|
||||
ðertype_filter_ptr->filter_info,
|
||||
sizeof(struct rte_eth_ethertype_filter));
|
||||
ret = ixgbe_add_del_ethertype_filter(dev,
|
||||
@ -2988,7 +2988,7 @@ ixgbe_flow_destroy(struct rte_eth_dev *dev,
|
||||
case RTE_ETH_FILTER_SYN:
|
||||
syn_filter_ptr = (struct ixgbe_eth_syn_filter_ele *)
|
||||
pmd_flow->rule;
|
||||
(void)rte_memcpy(&syn_filter,
|
||||
rte_memcpy(&syn_filter,
|
||||
&syn_filter_ptr->filter_info,
|
||||
sizeof(struct rte_eth_syn_filter));
|
||||
ret = ixgbe_syn_filter_set(dev, &syn_filter, FALSE);
|
||||
@ -3000,7 +3000,7 @@ ixgbe_flow_destroy(struct rte_eth_dev *dev,
|
||||
break;
|
||||
case RTE_ETH_FILTER_FDIR:
|
||||
fdir_rule_ptr = (struct ixgbe_fdir_rule_ele *)pmd_flow->rule;
|
||||
(void)rte_memcpy(&fdir_rule,
|
||||
rte_memcpy(&fdir_rule,
|
||||
&fdir_rule_ptr->filter_info,
|
||||
sizeof(struct ixgbe_fdir_rule));
|
||||
ret = ixgbe_fdir_filter_program(dev, &fdir_rule, TRUE, FALSE);
|
||||
@ -3015,7 +3015,7 @@ ixgbe_flow_destroy(struct rte_eth_dev *dev,
|
||||
case RTE_ETH_FILTER_L2_TUNNEL:
|
||||
l2_tn_filter_ptr = (struct ixgbe_eth_l2_tunnel_conf_ele *)
|
||||
pmd_flow->rule;
|
||||
(void)rte_memcpy(&l2_tn_filter, &l2_tn_filter_ptr->filter_info,
|
||||
rte_memcpy(&l2_tn_filter, &l2_tn_filter_ptr->filter_info,
|
||||
sizeof(struct rte_eth_l2_tunnel_conf));
|
||||
ret = ixgbe_dev_l2_tunnel_filter_del(dev, &l2_tn_filter);
|
||||
if (!ret) {
|
||||
|
@ -312,7 +312,7 @@ ixgbe_shaper_profile_add(struct rte_eth_dev *dev,
|
||||
if (!shaper_profile)
|
||||
return -ENOMEM;
|
||||
shaper_profile->shaper_profile_id = shaper_profile_id;
|
||||
(void)rte_memcpy(&shaper_profile->profile, profile,
|
||||
rte_memcpy(&shaper_profile->profile, profile,
|
||||
sizeof(struct rte_tm_shaper_params));
|
||||
TAILQ_INSERT_TAIL(&tm_conf->shaper_profile_list,
|
||||
shaper_profile, node);
|
||||
@ -657,7 +657,7 @@ ixgbe_node_add(struct rte_eth_dev *dev, uint32_t node_id,
|
||||
tm_node->no = 0;
|
||||
tm_node->parent = NULL;
|
||||
tm_node->shaper_profile = shaper_profile;
|
||||
(void)rte_memcpy(&tm_node->params, params,
|
||||
rte_memcpy(&tm_node->params, params,
|
||||
sizeof(struct rte_tm_node_params));
|
||||
tm_conf->root = tm_node;
|
||||
|
||||
@ -737,7 +737,7 @@ ixgbe_node_add(struct rte_eth_dev *dev, uint32_t node_id,
|
||||
tm_node->reference_count = 0;
|
||||
tm_node->parent = parent_node;
|
||||
tm_node->shaper_profile = shaper_profile;
|
||||
(void)rte_memcpy(&tm_node->params, params,
|
||||
rte_memcpy(&tm_node->params, params,
|
||||
sizeof(struct rte_tm_node_params));
|
||||
if (parent_node_type == IXGBE_TM_NODE_TYPE_PORT) {
|
||||
tm_node->no = parent_node->reference_count;
|
||||
|
Loading…
Reference in New Issue
Block a user