All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] backport: allow compilation with Ubuntu's 3.13
@ 2015-05-19 13:42 Emmanuel Grumbach
  2015-05-20  8:27 ` Johannes Berg
  2015-05-25 21:52 ` Hauke Mehrtens
  0 siblings, 2 replies; 16+ messages in thread
From: Emmanuel Grumbach @ 2015-05-19 13:42 UTC (permalink / raw)
  To: backports; +Cc: Emmanuel Grumbach

Canonical backported:

Author: Or Gerlitz <ogerlitz@mellanox.com>
Date:   Mon Jan 20 13:59:19 2014 +0200

    net: Add GRO support for UDP encapsulating protocols

This is commit 2da204a8f67fbe25816cbce8cc8551f03d5b951a in their
tree.
Cope with that.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
---
Touch compiled only. And I don't really know how the UTS thing goes :)
---
 backport/backport-include/linux/netdevice.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/backport/backport-include/linux/netdevice.h b/backport/backport-include/linux/netdevice.h
index bb3fefb..61ac95c 100644
--- a/backport/backport-include/linux/netdevice.h
+++ b/backport/backport-include/linux/netdevice.h
@@ -81,6 +81,7 @@ static inline void dev_consume_skb_any(struct sk_buff *skb)
 	dev_kfree_skb_any(skb);
 }
 
+#if (LINUX_VERSION_CODE == KERNEL_VERSION(3,13,11) && UTS_UBUNTU_RELEASE_ABI < 24)
 struct pcpu_sw_netstats {
 	u64     rx_packets;
 	u64     rx_bytes;
@@ -88,6 +89,7 @@ struct pcpu_sw_netstats {
 	u64     tx_bytes;
 	struct u64_stats_sync   syncp;
 };
+#endif
 
 #define netdev_tstats(dev)	((struct pcpu_sw_netstats *)dev->ml_priv)
 #define netdev_assign_tstats(dev, e)	dev->ml_priv = (e);
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2015-06-08 19:01 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-19 13:42 [PATCH] backport: allow compilation with Ubuntu's 3.13 Emmanuel Grumbach
2015-05-20  8:27 ` Johannes Berg
2015-05-20  8:31   ` Grumbach, Emmanuel
2015-05-20  8:34     ` Johannes Berg
2015-05-20  8:39       ` Grumbach, Emmanuel
2015-05-20 15:30         ` Larry Finger
2015-05-20 16:42           ` Grumbach, Emmanuel
2015-05-20 16:53             ` Larry Finger
2015-05-20 16:55               ` Grumbach, Emmanuel
2015-05-20 16:59               ` Johannes Berg
2015-06-08 18:58           ` Luis R. Rodriguez
2015-06-08 19:00             ` Luis R. Rodriguez
2015-05-20  8:36     ` Luca Coelho
2015-05-25 21:52 ` Hauke Mehrtens
2015-06-08  8:17   ` Luca Coelho
2015-06-08  8:25     ` Coelho, Luciano

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.