backport: replace select_queue changes by an spatch
PATCH 1/1 backport: replace select_queue changes by an spatch
From: Johannes Berg <[email protected]>
This hasn't really been a problem, but if we may want to add more uses in the future, or change things around (e.g. with the proposed 802.3 format addition to mac80211) then we may want to have this more maintainable.
The output looks a bit worse, but I think we can live with that.
Change-Id I0d1fa6d1d3560c720ff710c89aea846740eb2173
Signed-off-by Johannes Berg <[email protected]>
--- .../network/0028-select_queue.cocci | 24 ++++++++++++ .../network/0028-select_queue/INFO | 12 ------ .../network/0028-select_queue/mac80211.patch | 44 ---------------------- .../network/0028-select_queue/mwifiex.patch | 22 ----------- 4 files changed, 24 insertions(+), 78 deletions(-) create mode 100644 patches/collateral-evolutions/network/0028-select_queue.cocci delete mode 100644 patches/collateral-evolutions/network/0028-select_queue/INFO delete mode 100644 patches/collateral-evolutions/network/0028-select_queue/mac80211.patch delete mode 100644 patches/collateral-evolutions/network/0028-select_queue/mwifiex.patch
patches/collateral-evolutions/network/0028-select_queue.cocci new file +24 -0
@@ -0,0 +1,24 @@ +@ndo@ +identifier ops, select_queue; +@@ +struct net_device_ops ops = { + .ndo_select_queue = select_queue, + ... +}; + +@@ +identifier ndo.select_queue; +identifier dev, skb, accel_priv, fallback; +type select_queue_fallback_t; +type u16; +@@ +u16 select_queue( + struct net_device *dev, struct sk_buff *skb ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,13,0) + , void *accel_priv ++#endif ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,0) || (LINUX_VERSION_CODE == KERNEL_VERSION(3,13,11) && UTS_UBUNTU_RELEASE_ABI > 30) + , select_queue_fallback_t fallback ++#endif + ) + {...}
patches/collateral-evolutions/network/0028-select_queue/INFO deleted +0 -12
@@ -1,12 +0,0 @@ -backports: adapt to changes in netdev select_queue call - -This patch reverts the changes done in the following commit for older -kernel versions: -commit f663dd9aaf9ed124f25f0f8452edf238f087ad50 -Author: Jason Wang <[email protected]> -Date: Fri Jan 10 16:18:26 2014 +0800 - - net: core: explicitly select a txq before doing l2 forwarding - -mcgrof@ergon ~/linux (git::master)$ git describe --contains f663dd9aaf9ed124f25f0f8452edf238f087ad50 -v3.13-rc8~4^2~2
patches/collateral-evolutions/network/0028-select_queue/mac80211.patch deleted +0 -44
44 lines not on this page · raw message
patches/collateral-evolutions/network/0028-select_queue/mwifiex.patch deleted +0 -22
@@ -1,22 +0,0 @@ ---- a/drivers/net/wireless/marvell/mwifiex/main.c -+++ b/drivers/net/wireless/marvell/mwifiex/main.c -@@ -1199,9 +1199,19 @@ static struct net_device_stats *mwifiex_ - return &priv->stats; - } - -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,0) || \ -+ (LINUX_VERSION_CODE == KERNEL_VERSION(3,13,11) && UTS_UBUNTU_RELEASE_ABI > 30) - static u16 - mwifiex_netdev_select_wmm_queue(struct net_device *dev, struct sk_buff *skb, - void *accel_priv, select_queue_fallback_t fallback) -+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(3,13,0) -+static u16 -+mwifiex_netdev_select_wmm_queue(struct net_device *dev, struct sk_buff *skb, -+ void *accel_priv) -+#else -+static u16 -+mwifiex_netdev_select_wmm_queue(struct net_device *dev, struct sk_buff *skb) -+#endif - { - skb->priority = cfg80211_classify8021d(skb, NULL); - return mwifiex_1d_to_wmm_queue[skb->priority];
Signature · 4 lines
2.9.3 -- To unsubscribe from this list: send the line "unsubscribe backports" in