Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5c714e23 authored by Brice Goglin's avatar Brice Goglin Committed by David S. Miller
Browse files

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: default avatarBrice Goglin <brice@myri.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3ed30676
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;