Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 72102
b: refs/heads/master
c: 4e3ab47
h: refs/heads/master
v: v3
  • Loading branch information
Pavel Emelyanov authored and David S. Miller committed Oct 22, 2007
1 parent 662e27d commit 1602300
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 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: dfa4091129019959f4608756f76dc687495287ad
refs/heads/master: 4e3ab47a547616e583c7a5458beced6aa34c8ef3
2 changes: 1 addition & 1 deletion trunk/drivers/net/cpmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ static int cpmac_start_xmit(struct sk_buff *skb, struct net_device *dev)
}

len = max(skb->len, ETH_ZLEN);
queue = skb->queue_mapping;
queue = skb_get_queue_mapping(skb);
#ifdef CONFIG_NETDEVICES_MULTIQUEUE
netif_stop_subqueue(dev, queue);
#else
Expand Down
9 changes: 9 additions & 0 deletions trunk/include/linux/skbuff.h
Original file line number Diff line number Diff line change
Expand Up @@ -1769,6 +1769,15 @@ static inline void skb_set_queue_mapping(struct sk_buff *skb, u16 queue_mapping)
#endif
}

static inline u16 skb_get_queue_mapping(struct sk_buff *skb)
{
#ifdef CONFIG_NETDEVICES_MULTIQUEUE
return skb->queue_mapping;
#else
return 0;
#endif
}

static inline void skb_copy_queue_mapping(struct sk_buff *to, const struct sk_buff *from)
{
#ifdef CONFIG_NETDEVICES_MULTIQUEUE
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/sched/sch_teql.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ static int teql_master_xmit(struct sk_buff *skb, struct net_device *dev)
int busy;
int nores;
int len = skb->len;
int subq = skb->queue_mapping;
int subq = skb_get_queue_mapping(skb);
struct sk_buff *skb_res = NULL;

start = master->slaves;
Expand Down

0 comments on commit 1602300

Please sign in to comment.