blob: c86ff971edc04ff2faed91dd1a0ef5b79fa68915 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# change in field semantic in 2.6.14
--- dir/ixp425_eth.c 2005-09-24 17:50:57.828607113 -0700
+++ dir/ixp425_eth.c 2005-09-24 17:54:19.593303365 -0700
@@ -1300,8 +1300,12 @@
skb->len -= header_len;
/* fill the pkt arrival time (set at the irq callback entry) */
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14)
skb->stamp.tv_sec = irq_stamp.tv_sec;
skb->stamp.tv_usec = irq_stamp.tv_usec;
+#else
+ skb_set_timestamp(skb, &irq_stamp);
+#endif
/* fill the input device field */
skb->dev = dev;
|