mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
[net/siit] Added compability for Linux >= 4.7.0
Closes #4242 Signed-off-by: Vladimir Ulrich <admin@evl.su>
This commit is contained in:
@@ -1166,7 +1166,11 @@ static int siit_xmit(struct sk_buff *skb, struct net_device *dev)
|
||||
siit_stats(dev)->rx_bytes += skb->len;
|
||||
siit_stats(dev)->rx_packets++;
|
||||
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,7,0)
|
||||
netif_trans_update(dev);
|
||||
#else
|
||||
dev->trans_start = jiffies;
|
||||
#endif
|
||||
|
||||
/* Upper layer (IP) protocol forms sk_buff for outgoing packet
|
||||
* and sets IP header + Ether header too. IP layer sets outgoing
|
||||
|
||||
Reference in New Issue
Block a user