]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
be2net: Record receive queue index in skb to aid RPS.
authorSomnath Kotur <somnath.kotur@emulex.com>
Wed, 2 May 2012 03:40:49 +0000 (03:40 +0000)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Tue, 8 May 2012 20:32:02 +0000 (13:32 -0700)
Signed-off-by: Sarveshwar Bandi <Sarveshwar.Bandi@emulex.com>
Signed-off-by: Somnath Kotur <somnath.kotur@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be_main.c

index 3f6d3f3df2f4ed7a9df76102c3b034986c6a8532..ff9b80178d796c3fca6d21bd4ecb10b23fe25d7c 100644 (file)
@@ -1231,6 +1231,7 @@ static void be_rx_compl_process(struct be_rx_obj *rxo,
                skb_checksum_none_assert(skb);
 
        skb->protocol = eth_type_trans(skb, netdev);
+       skb_record_rx_queue(skb, rxo - &adapter->rx_obj[0]);
        if (netdev->features & NETIF_F_RXHASH)
                skb->rxhash = rxcp->rss_hash;
 
@@ -1287,6 +1288,7 @@ void be_rx_compl_process_gro(struct be_rx_obj *rxo, struct napi_struct *napi,
        skb->len = rxcp->pkt_size;
        skb->data_len = rxcp->pkt_size;
        skb->ip_summed = CHECKSUM_UNNECESSARY;
+       skb_record_rx_queue(skb, rxo - &adapter->rx_obj[0]);
        if (adapter->netdev->features & NETIF_F_RXHASH)
                skb->rxhash = rxcp->rss_hash;