Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 214779
b: refs/heads/master
c: 3171d02
h: refs/heads/master
i:
  214777: 6b7cafc
  214775: f5481b7
v: v3
  • Loading branch information
Ben Hutchings authored and David S. Miller committed Sep 28, 2010
1 parent 872fcb9 commit cb4583f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 62fe0b40abb3484413800edaef9b087a20059acf
refs/heads/master: 3171d026291d08c2a4cfe06302ce308b09605c4b
12 changes: 12 additions & 0 deletions trunk/include/linux/netdevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -1699,6 +1699,18 @@ static inline int netif_set_real_num_rx_queues(struct net_device *dev,
}
#endif

static inline int netif_copy_real_num_queues(struct net_device *to_dev,
const struct net_device *from_dev)
{
netif_set_real_num_tx_queues(to_dev, from_dev->real_num_tx_queues);
#ifdef CONFIG_RPS
return netif_set_real_num_rx_queues(to_dev,
from_dev->real_num_rx_queues);
#else
return 0;
#endif
}

/* Use this variant when it is known for sure that it
* is executing from hardware interrupt context or with hardware interrupts
* disabled.
Expand Down

0 comments on commit cb4583f

Please sign in to comment.