Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 328001
b: refs/heads/master
c: 8c4c49d
h: refs/heads/master
i:
  327999: 519c6eb
v: v3
  • Loading branch information
Amerigo Wang authored and David S. Miller committed Sep 19, 2012
1 parent b5c16b3 commit ec7ba62
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6b6e27255f29a6191ef8ad96bfcc392ab2ef6c71
refs/heads/master: 8c4c49df5cfeb8d56e5b85a430c8cbcb86c2ac37
3 changes: 3 additions & 0 deletions trunk/include/linux/netdevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -1403,6 +1403,9 @@ static inline void netdev_for_each_tx_queue(struct net_device *dev,
f(dev, &dev->_tx[i], arg);
}

extern struct netdev_queue *netdev_pick_tx(struct net_device *dev,
struct sk_buff *skb);

/*
* Net namespace inlines
*/
Expand Down
6 changes: 3 additions & 3 deletions trunk/net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -2396,8 +2396,8 @@ static inline int get_xps_queue(struct net_device *dev, struct sk_buff *skb)
#endif
}

static struct netdev_queue *dev_pick_tx(struct net_device *dev,
struct sk_buff *skb)
struct netdev_queue *netdev_pick_tx(struct net_device *dev,
struct sk_buff *skb)
{
int queue_index;
const struct net_device_ops *ops = dev->netdev_ops;
Expand Down Expand Up @@ -2571,7 +2571,7 @@ int dev_queue_xmit(struct sk_buff *skb)

skb_update_prio(skb);

txq = dev_pick_tx(dev, skb);
txq = netdev_pick_tx(dev, skb);
q = rcu_dereference_bh(txq->qdisc);

#ifdef CONFIG_NET_CLS_ACT
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/core/netpoll.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ void netpoll_send_skb_on_dev(struct netpoll *np, struct sk_buff *skb,
if (skb_queue_len(&npinfo->txq) == 0 && !netpoll_owner_active(dev)) {
struct netdev_queue *txq;

txq = netdev_get_tx_queue(dev, skb_get_queue_mapping(skb));
txq = netdev_pick_tx(dev, skb);

/* try until next clock tick */
for (tries = jiffies_to_usecs(1)/USEC_PER_POLL;
Expand Down

0 comments on commit ec7ba62

Please sign in to comment.