]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
myri10ge: remove over-paranoid queue number modulus
authorBrice Goglin <brice@myri.com>
Thu, 9 Oct 2008 21:31:42 +0000 (14:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Oct 2008 21:31:42 +0000 (14:31 -0700)
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>
drivers/net/myri10ge/myri10ge.c

index ab7755abd2058b11d04d150fd97d0a886ab08faa..8cec6f3c2f8baee8157a702c779efb6ba55b7036 100644 (file)
@@ -2643,8 +2643,6 @@ static int myri10ge_xmit(struct sk_buff *skb, struct net_device *dev)
        u8 flags, odd_flag;
 
        queue = skb_get_queue_mapping(skb);
-       queue &= (mgp->num_slices - 1);
-
        ss = &mgp->ss[queue];
        netdev_queue = netdev_get_tx_queue(mgp->dev, queue);
        tx = &ss->tx;