[PATCH] kni: fix device address set
Min Hu (Connor)
humin29 at huawei.com
Thu Apr 7 10:08:34 CEST 2022
OK, I see, thanks Thomas.
在 2022/4/7 15:42, Thomas Monjalon 写道:
> 07/04/2022 02:44, Min Hu (Connor):
>> Hi, Stephen,
>> I think this is a good option, but the macro definition is like:
>> +#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 14, 0)
>> +#define ether_addr_copy(dst, src) memcpy(dst, src, ETH_ALEN)
>> +#endif
>>
>> @Ferry, why is it limited for "LINUX_VERSION_CODE < KERNEL_VERSION(3,
>> 14, 0)" ?
>
> I guess that's because it is defined in "new kernels" so we need
> a definition in DPDK for old kernels.
>
>
>
> .
>
More information about the dev
mailing list