2011-10-01 10:33:06

by Hauke Mehrtens

[permalink] [raw]
Subject: [PATCH] compat: add skb_tx_timestamp() and skb_defer_rx_timestamp()

Just add an empty implementation of these functions to do the same as
when timestamping is deactivated.

Signed-off-by: Hauke Mehrtens <[email protected]>
---
include/linux/compat-2.6.36.h | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/include/linux/compat-2.6.36.h b/include/linux/compat-2.6.36.h
index 7bb2bb8..f4d6f80 100644
--- a/include/linux/compat-2.6.36.h
+++ b/include/linux/compat-2.6.36.h
@@ -125,6 +125,15 @@ static inline void tty_unlock(void) __releases(kernel_lock)

static inline void pm_wakeup_event(struct device *dev, unsigned int msec) {}

+static inline bool skb_defer_rx_timestamp(struct sk_buff *skb)
+{
+ return false;
+}
+
+static inline void skb_tx_timestamp(struct sk_buff *skb)
+{
+}
+
#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,36)) */

#endif /* LINUX_26_36_COMPAT_H */
--
1.7.4.1



2011-10-03 19:58:02

by Luis R. Rodriguez

[permalink] [raw]
Subject: Re: [PATCH] compat: add skb_tx_timestamp() and skb_defer_rx_timestamp()

On Sat, Oct 1, 2011 at 3:32 AM, Hauke Mehrtens <[email protected]> wrote:
> Just add an empty implementation of these functions to do the same as
> when timestamping is deactivated.
>
> Signed-off-by: Hauke Mehrtens <[email protected]>

Applied and pushed, thanks!

Luis