diff mbox

[RFC] cxgb3: Set the rxq

Message ID 20091023111321.4726.29354.sendpatchset@localhost.localdomain
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

Krishna Kumar Oct. 23, 2009, 11:13 a.m. UTC
From: Krishna Kumar <krkumar2@in.ibm.com>

Set the rxq# for LRO when processing the last fragment of a
frame. This helps in fast txq selection for routing workloads.

Signed-off-by: Krishna Kumar <krkumar2@in.ibm.com>
---

 drivers/net/cxgb3/sge.c |    1 +
 1 file changed, 1 insertion(+)

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Divy Le Ray Oct. 24, 2009, 12:29 a.m. UTC | #1
On Fri, 23 Oct 2009 04:13:21 -0700, Krishna Kumar <krkumar2@in.ibm.com>  
wrote:

> From: Krishna Kumar <krkumar2@in.ibm.com>
>
> Set the rxq# for LRO when processing the last fragment of a
> frame. This helps in fast txq selection for routing workloads.
>
> Signed-off-by: Krishna Kumar <krkumar2@in.ibm.com>

Acked-by: Divy Le Ray <divy@chelsio.com>

> ---
>
>  drivers/net/cxgb3/sge.c |    1 +
>  1 file changed, 1 insertion(+)
>
> diff -ruNp org/drivers/net/cxgb3/sge.c new/drivers/net/cxgb3/sge.c
> --- org/drivers/net/cxgb3/sge.c	2009-10-19 11:58:16.000000000 +0530
> +++ new/drivers/net/cxgb3/sge.c	2009-10-20 09:40:40.000000000 +0530
> @@ -2135,6 +2135,7 @@ static void lro_add_page(struct adapter
>  	if (!complete)
>  		return;
> +	skb_record_rx_queue(skb, qs - &adap->sge.qs[0]);
>  	skb->ip_summed = CHECKSUM_UNNECESSARY;
>  	cpl = qs->lro_va;
>

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
David Miller Oct. 24, 2009, 2:07 p.m. UTC | #2
From: "Divy Le Ray" <divy@chelsio.com>
Date: Fri, 23 Oct 2009 17:29:44 -0700

> On Fri, 23 Oct 2009 04:13:21 -0700, Krishna Kumar
> <krkumar2@in.ibm.com> wrote:
> 
>> From: Krishna Kumar <krkumar2@in.ibm.com>
>>
>> Set the rxq# for LRO when processing the last fragment of a
>> frame. This helps in fast txq selection for routing workloads.
>>
>> Signed-off-by: Krishna Kumar <krkumar2@in.ibm.com>
> 
> Acked-by: Divy Le Ray <divy@chelsio.com>

Applied to net-next-2.6, thanks!
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff -ruNp org/drivers/net/cxgb3/sge.c new/drivers/net/cxgb3/sge.c
--- org/drivers/net/cxgb3/sge.c	2009-10-19 11:58:16.000000000 +0530
+++ new/drivers/net/cxgb3/sge.c	2009-10-20 09:40:40.000000000 +0530
@@ -2135,6 +2135,7 @@  static void lro_add_page(struct adapter 
 	if (!complete)
 		return;
 
+	skb_record_rx_queue(skb, qs - &adap->sge.qs[0]);
 	skb->ip_summed = CHECKSUM_UNNECESSARY;
 	cpl = qs->lro_va;