[dpdk-dev] [PATCH v4 05/10] qede: Add core driver

Stephen Hemminger stephen at networkplumber.org
Wed Mar 30 18:45:37 CEST 2016


On Tue, 29 Mar 2016 22:28:20 -0700
Rasesh Mody <rasesh.mody at qlogic.com> wrote:

> +static void
> +qede_alloc_etherdev(struct qede_dev *qdev, struct qed_dev_eth_info *info)
> +{
> +	rte_memcpy(&qdev->dev_info, info, sizeof(*info));

Why bother with rte_memcpy here? why not just assignment or memcpy()?

> +	qdev->num_tc = qdev->dev_info.num_tc;
> +	qdev->ops = qed_ops;
> +}


More information about the dev mailing list