bnx2x: Moving skb_record_rx_queue
authorEilon Greenstein <eilong@broadcom.com>
Thu, 12 Feb 2009 08:36:37 +0000 (08:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Feb 2009 07:31:13 +0000 (23:31 -0800)
Should be called for all incoming packets and not just for GRO packets

Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2x_main.c

index 19865d5d8aed4a6b5c7478e2b0d662400b3ddd86..891a3fb9fcf40d3cff217972e882f801accc0e29 100644 (file)
@@ -1336,7 +1336,6 @@ static void bnx2x_tpa_stop(struct bnx2x *bp, struct bnx2x_fastpath *fp,
 
                skb->protocol = eth_type_trans(skb, bp->dev);
                skb->ip_summed = CHECKSUM_UNNECESSARY;
-               skb_record_rx_queue(skb, queue);
 
                {
                        struct iphdr *iph;
@@ -1599,6 +1598,7 @@ reuse_rx:
                        }
                }
 
+               skb_record_rx_queue(skb, fp->index);
 #ifdef BCM_VLAN
                if ((bp->vlgrp != NULL) && (bp->flags & HW_VLAN_RX_FLAG) &&
                    (le16_to_cpu(cqe->fast_path_cqe.pars_flags.flags) &