aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrice Goglin <brice@myri.com>2008-10-09 17:31:42 -0400
committerDavid S. Miller <davem@davemloft.net>2008-10-09 17:31:42 -0400
commit5c714e238e5e0eb74cdc74201bf3d6296b3b3104 (patch)
tree2ddbb7b3857592a86d9c46f3dc2c12d40fdf8791
parent3ed30676f5bc9960c67644fa37c5fdc36ae47b5b (diff)
myri10ge: remove over-paranoid queue number modulus
No need to modulus the queue number in ->hard_start_xmit() since the core is going to do that for you modulus ->real_num_tx_queues. Signed-off-by: Brice Goglin <brice@myri.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/myri10ge/myri10ge.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/myri10ge/myri10ge.c b/drivers/net/myri10ge/myri10ge.c
index ab7755abd205..8cec6f3c2f8b 100644
--- a/drivers/net/myri10ge/myri10ge.c
+++ b/drivers/net/myri10ge/myri10ge.c
@@ -2643,8 +2643,6 @@ static int myri10ge_xmit(struct sk_buff *skb, struct net_device *dev)
2643 u8 flags, odd_flag; 2643 u8 flags, odd_flag;
2644 2644
2645 queue = skb_get_queue_mapping(skb); 2645 queue = skb_get_queue_mapping(skb);
2646 queue &= (mgp->num_slices - 1);
2647
2648 ss = &mgp->ss[queue]; 2646 ss = &mgp->ss[queue];
2649 netdev_queue = netdev_get_tx_queue(mgp->dev, queue); 2647 netdev_queue = netdev_get_tx_queue(mgp->dev, queue);
2650 tx = &ss->tx; 2648 tx = &ss->tx;