diff options
author | Johannes Berg <johannes.berg@intel.com> | 2015-09-09 11:27:55 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2015-09-21 23:32:53 +0200 |
commit | 121bebae6d22b9d9bc52b1e2d70f3ed9d6d6e2fb (patch) | |
tree | ffa8967a22c0e7fb76206c083dd8da3cf9238208 /patches/collateral-evolutions/network/0062-iff-no-queue.cocci | |
parent | daa652a9c09ed3c924d4dcf037fbbf995371d330 (diff) |
backports: add spatch to handle IFF_NO_QUEUE
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>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'patches/collateral-evolutions/network/0062-iff-no-queue.cocci')
-rw-r--r-- | patches/collateral-evolutions/network/0062-iff-no-queue.cocci | 9 |
1 files changed, 9 insertions, 0 deletions
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 00000000..9c95b853 --- /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 |