]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - net/core/dev.c
net: Fix Tx hash bound checking
[linux.git] / net / core / dev.c
index e10bd680dc032cab54f1b5f4db99e485248fa1f4..c6c985fe7b1bcf784cedde2b2a86e26356471bee 100644 (file)
@@ -3076,6 +3076,8 @@ static u16 skb_tx_hash(const struct net_device *dev,
 
        if (skb_rx_queue_recorded(skb)) {
                hash = skb_get_rx_queue(skb);
+               if (hash >= qoffset)
+                       hash -= qoffset;
                while (unlikely(hash >= qcount))
                        hash -= qcount;
                return hash + qoffset;