board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / openpowerlink / 0004-FIX-Veth-Fix-compilation-on-Linux-kernels-4.7.patch
blobd246f46681e3cf5390d481eb3766e06de8af9cb7
1 From 041799c4990d56b9822ee3ae3ffbb181e5c16c81 Mon Sep 17 00:00:00 2001
2 From: Romain Naour <romain.naour@gmail.com>
3 Date: Thu, 3 Nov 2016 21:09:57 +0100
4 Subject: [PATCH] [FIX] Veth: Fix compilation on Linux kernels >= 4.7
6 dev->trans_start was replaced by netif_trans_update helper in kernel
7 4.7 by commit 860e9538a9482bb84589f7d0718a7e6d0a944d58.
9 Upstream status: Pending
10 https://github.com/OpenAutomationTechnologies/openPOWERLINK_V2/pull/177
12 Signed-off-by: Romain Naour <romain.naour@gmail.com>
13 ---
14 stack/src/kernel/veth/veth-linuxkernel.c | 4 ++++
15 1 file changed, 4 insertions(+)
17 diff --git a/stack/src/kernel/veth/veth-linuxkernel.c b/stack/src/kernel/veth/veth-linuxkernel.c
18 index 8c68c47..ecdc000 100644
19 --- a/stack/src/kernel/veth/veth-linuxkernel.c
20 +++ b/stack/src/kernel/veth/veth-linuxkernel.c
21 @@ -287,7 +287,11 @@ static int vethStartXmit(struct sk_buff* pSkb_p, struct net_device* pNetDevice_p
22 struct net_device_stats* pStats = netdev_priv(pNetDevice_p);
24 //save time stamp
25 +#if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 7, 0))
26 pNetDevice_p->trans_start = jiffies;
27 +#else
28 + netif_trans_update(pNetDevice_p);
29 +#endif
31 frameInfo.frame.pBuffer = (tPlkFrame*)pSkb_p->data;
32 frameInfo.frameSize = pSkb_p->len;
33 --
34 2.5.5