: pktgen: Fix multiqueue handling.
Subsystems (2)
PATCH 28/39 : pktgen: Fix multiqueue handling.
We make sure we operate on whatever queue gets mapped to the pkt_dev->skb.
This is currently functional, but it could be largely improved. The initial check in pktgen_xmit() will sometimes check the wrong queue, which is mostly harmless. The thing to do is probably to invoke fill_packet() earlier.
Also, dev_pick_tx() has no external references, so we can mark it static and kill the module export.
--- include/linux/netdevice.h | 3 -- net/core/dev.c | 5 +-- net/core/pktgen.c | 55 +++++++++++++++++++++++++++++++-------------- 3 files changed, 40 insertions(+), 23 deletions(-)
include/linux/netdevice.h +0 -3
@@ -757,9 +757,6 @@ struct net_device#define NETDEV_ALIGN 32#define NETDEV_ALIGN_CONST (NETDEV_ALIGN - 1) -extern struct netdev_queue *dev_pick_tx (struct net_device *dev, -struct sk_buff *skb); -static inline struct netdev_queue *netdev_get_tx_queue (const struct net_device *dev,int index)
net/core/dev.c +2 -3
@@ -1666,12 +1666,11 @@ out_kfree_skb:* --BLG */ -struct netdev_queue *dev_pick_tx (struct net_device *dev, -struct sk_buff *skb) +static struct netdev_queue *dev_pick_tx (struct net_device *dev, +struct sk_buff *skb) {return netdev_get_tx_queue (dev,0 ); } -EXPORT_SYMBOL (dev_pick_tx);int dev_queue_xmit (struct sk_buff *skb) {
net/core/pktgen.c +38 -17
121 lines not on this page · raw message
Signature · 6 lines
1.5.6 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html