Skip to contentSkip to conversation

: pktgen: Fix multiqueue handling.

PATCH In review David Miller 1 participant 1 message Jul 3, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index 510a420..f119532 100644
@@ -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
index 6bf4930..cfda430 100644
@@ -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