[dpdk-dev] [PATCH v2] kni: fix build on SLE12 SP3
Ferruh Yigit
ferruh.yigit at intel.com
Fri Oct 6 23:42:03 CEST 2017
On 9/5/2017 10:55 AM, Nirmoy Das wrote:
>
>
> On 09/04/2017 11:46 AM, Ferruh Yigit wrote:
>> On 8/29/2017 4:06 PM, Nirmoy Das wrote:
>>> compilation error:
>>> build/lib/librte_eal/linuxapp/kni/kni_net.c:215:5: error:
>>> ‘struct net_device’ has no member named ‘trans_start’
>>> dev->trans_start = jiffies;
>>>
>>> Signed-off-by: Nirmoy Das <ndas at suse.de>
<...>
>>> @@ -55,7 +83,9 @@
>>>
>>> #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 7, 0) || \
>>> (defined(RHEL_RELEASE_CODE) && \
>>> - RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(7, 4))
>>> + RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(7, 4)) || \
>>> + (defined(SLE_VERSION_CODE) && \
>> defined check is not required, since SLE_VERSION_CODE always defined [1].
>>
>> It can be either:
>> a) (SLE_VERSION_CODE && SLE_VERSION_CODE == SLE_VERSION(12, 3, 0))
>> or directly check:
>> b) (SLE_VERSION_CODE == SLE_VERSION(12, 3, 0))
> Thanks for your comments I will modify the patch.
Hi Nirmoy,
Reminder of this patch, would be able to send a new version?
Thanks,
ferruh
>>
>>> + SLE_VERSION_CODE == SLE_VERSION(12, 3, 0))
>>> #define HAVE_TRANS_START_HELPER
>>> #endif
>>>
>>>
> Regards,
> Nirmoy
>
>
More information about the dev
mailing list