Skip to content

Commit

Permalink
myri10ge: remove over-paranoid queue number modulus
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Brice Goglin authored and David S. Miller committed Oct 9, 2008
1 parent 3ed3067 commit 5c714e2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/net/myri10ge/myri10ge.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5c714e2

Please sign in to comment.