]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/patches/suse-2.6.27.25/patches.drivers/cxgb3-fix_lro_switch.patch
Revert "Move xen patchset to new version's subdir."
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.25 / patches.drivers / cxgb3-fix_lro_switch.patch
CommitLineData
00e5a55c
BS
1From: Divy Le Ray <divy@chelsio.com>
2Date: Thu, 5 Feb 2009 00:31:39 +0000 (-0800)
3Subject: cxgb3: Fix lro switch
4X-Git-Url: http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Fdavem%2Fnet-2.6.git;a=commitdiff_plain;h=65ab8385b67854792e89267907f9fcb27e779f95
5
6cxgb3: Fix lro switch
7
8The LRO switch is always set to 1 in the rx processing loop.
9It breaks the accelerated iSCSI receive traffic.
10Fix its computation.
11
12Signed-off-by: Divy Le Ray <divy@chelsio.com>
13Signed-off-by: David S. Miller <davem@davemloft.net>
14Acked-by: John Jolly <jjolly@suse.de>
15---
16
17---
18 drivers/net/cxgb3/sge.c | 3 +--
19 1 file changed, 1 insertion(+), 2 deletions(-)
20
21--- a/drivers/net/cxgb3/sge.c
22+++ b/drivers/net/cxgb3/sge.c
23@@ -2270,8 +2270,7 @@ no_mem:
24 } else if ((len = ntohl(r->len_cq)) != 0) {
25 struct sge_fl *fl;
26
27- if (eth)
28- lro = qs->lro_enabled && is_eth_tcp(rss_hi);
29+ lro &= eth && is_eth_tcp(rss_hi);
30
31 fl = (len & F_RSPD_FLQ) ? &qs->fl[1] : &qs->fl[0];
32 if (fl->use_pages) {