All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] backports: add spatch to handle IFF_NO_QUEUE
@ 2015-09-09  9:27 Johannes Berg
  2015-09-14  8:25 ` Luis R. Rodriguez
  2015-09-22 21:41 ` Hauke Mehrtens
  0 siblings, 2 replies; 8+ messages in thread
From: Johannes Berg @ 2015-09-09  9:27 UTC (permalink / raw)
  To: backports; +Cc: Johannes Berg

From: Johannes Berg <johannes.berg@intel.com>

This flag doesn't exist on newer kernels, but replaced the tx_queue_len
assignment, so can't just be backported to have no effect. Instead, add
a semantic patch that puts back the tx_queue_len=0 assignment on older
kernel versions.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
 patches/collateral-evolutions/network/0062-iff-no-queue.cocci | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 patches/collateral-evolutions/network/0062-iff-no-queue.cocci

diff --git a/patches/collateral-evolutions/network/0062-iff-no-queue.cocci b/patches/collateral-evolutions/network/0062-iff-no-queue.cocci
new file mode 100644
index 000000000000..9c95b853df18
--- /dev/null
+++ b/patches/collateral-evolutions/network/0062-iff-no-queue.cocci
@@ -0,0 +1,9 @@
+@@
+expression E;
+@@
+
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,3,0)
+ E->priv_flags |= IFF_NO_QUEUE;
++#else
++E->tx_queue_len = 0;
++#endif
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe backports" in

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

end of thread, other threads:[~2015-09-30 19:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-09  9:27 [PATCH v2] backports: add spatch to handle IFF_NO_QUEUE Johannes Berg
2015-09-14  8:25 ` Luis R. Rodriguez
2015-09-14  8:27   ` Johannes Berg
2015-09-14  9:33     ` Luis R. Rodriguez
2015-09-14 19:48       ` Julia Lawall
2015-09-30 19:10         ` Luis R. Rodriguez
2015-09-14 19:15     ` Julia Lawall
2015-09-22 21:41 ` Hauke Mehrtens

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.