aboutsummaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-11-20 19:44:00 -0500
committerDavid S. Miller <davem@davemloft.net>2008-11-20 19:44:00 -0500
commit6ab33d51713d6d60c7677c0d020910a8cb37e513 (patch)
tree546c2ff099b2757e75cf34ddace874f1220f740e /net/core
parent7be6065b39c3f1cfa796667eac1a2170465acc91 (diff)
parent13d428afc007fcfcd6deeb215618f54cf9c0cae6 (diff)
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts: drivers/net/ixgbe/ixgbe_main.c include/net/mac80211.h net/phonet/af_phonet.c
Diffstat (limited to 'net/core')
-rw-r--r--net/core/pktgen.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/net/core/pktgen.c b/net/core/pktgen.c
index a4f5ad1ab352..4e77914c4d42 100644
--- a/net/core/pktgen.c
+++ b/net/core/pktgen.c
@@ -1976,13 +1976,7 @@ static void pktgen_setup_inject(struct pktgen_dev *pkt_dev)
1976 1976
1977 /* make sure that we don't pick a non-existing transmit queue */ 1977 /* make sure that we don't pick a non-existing transmit queue */
1978 ntxq = pkt_dev->odev->real_num_tx_queues; 1978 ntxq = pkt_dev->odev->real_num_tx_queues;
1979 if (ntxq > num_online_cpus() && (pkt_dev->flags & F_QUEUE_MAP_CPU)) { 1979
1980 printk(KERN_WARNING "pktgen: WARNING: QUEUE_MAP_CPU "
1981 "disabled because CPU count (%d) exceeds number "
1982 "of tx queues (%d) on %s\n", num_online_cpus(), ntxq,
1983 pkt_dev->odev->name);
1984 pkt_dev->flags &= ~F_QUEUE_MAP_CPU;
1985 }
1986 if (ntxq <= pkt_dev->queue_map_min) { 1980 if (ntxq <= pkt_dev->queue_map_min) {
1987 printk(KERN_WARNING "pktgen: WARNING: Requested " 1981 printk(KERN_WARNING "pktgen: WARNING: Requested "
1988 "queue_map_min (zero-based) (%d) exceeds valid range " 1982 "queue_map_min (zero-based) (%d) exceeds valid range "
@@ -2205,6 +2199,7 @@ static void set_cur_queue_map(struct pktgen_dev *pkt_dev)
2205 } 2199 }
2206 pkt_dev->cur_queue_map = t; 2200 pkt_dev->cur_queue_map = t;
2207 } 2201 }
2202 pkt_dev->cur_queue_map = pkt_dev->cur_queue_map % pkt_dev->odev->real_num_tx_queues;
2208} 2203}
2209 2204
2210/* Increment/randomize headers according to flags and current values 2205/* Increment/randomize headers according to flags and current values