[dpdk-dev] [PATCH v4 05/10] qede: Add core driver
Harish Patil
harish.patil at qlogic.com
Thu Mar 31 09:03:42 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()?
Basically, I have tried using rte_* equivalent macros if available.
Would it be a problem?
OR is it that rte_memcpy() is meant to be used only in data path?
>
>> + qdev->num_tc = qdev->dev_info.num_tc;
>> + qdev->ops = qed_ops;
>> +}
>
More information about the dev
mailing list