]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/patches/suse-2.6.27.39/patches.drivers/cxgb3-fix_lro_switch.patch
Add a patch to fix Intel E100 wake-on-lan problems.
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.drivers / cxgb3-fix_lro_switch.patch
1 From: Divy Le Ray <divy@chelsio.com>
2 Date: Thu, 5 Feb 2009 00:31:39 +0000 (-0800)
3 Subject: cxgb3: Fix lro switch
4 X-Git-Url: http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Fdavem%2Fnet-2.6.git;a=commitdiff_plain;h=65ab8385b67854792e89267907f9fcb27e779f95
5
6 cxgb3: Fix lro switch
7
8 The LRO switch is always set to 1 in the rx processing loop.
9 It breaks the accelerated iSCSI receive traffic.
10 Fix its computation.
11
12 Signed-off-by: Divy Le Ray <divy@chelsio.com>
13 Signed-off-by: David S. Miller <davem@davemloft.net>
14 Acked-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) {