]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/patches/suse-2.6.27.39/patches.arch/s390-02-06-qeth-offset.patch
Imported linux-2.6.27.39 suse/xen patches.
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.arch / s390-02-06-qeth-offset.patch
1 From: Gerald Schaefer <geraldsc@de.ibm.com>
2 Subject: qeth: fix offset error in non prealloc header path
3 References: bnc#434333,LTC#48840
4
5 Symptom: bad or no VSWITCH/guest lan network traffic
6 Problem: Offset error in the non prealloc header path
7 Solution: For the non preallocated qeth header code path we should not
8 change the header length.
9
10 Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com>
11
12 Acked-by: John Jolly <jjolly@suse.de>
13 ---
14
15 drivers/s390/net/qeth_core_main.c | 3 ++-
16 1 file changed, 2 insertions(+), 1 deletion(-)
17
18 Index: linux-sles11/drivers/s390/net/qeth_core_main.c
19 ===================================================================
20 --- linux-sles11.orig/drivers/s390/net/qeth_core_main.c
21 +++ linux-sles11/drivers/s390/net/qeth_core_main.c
22 @@ -3034,7 +3034,7 @@ static inline void __qeth_fill_buffer(st
23 struct qdio_buffer *buffer, int is_tso, int *next_element_to_fill,
24 int offset)
25 {
26 - int length = skb->len - offset;
27 + int length = skb->len;
28 int length_here;
29 int element;
30 char *data;
31 @@ -3046,6 +3046,7 @@ static inline void __qeth_fill_buffer(st
32
33 if (offset >= 0) {
34 data = skb->data + offset;
35 + length -= offset;
36 first_lap = 0;
37 }
38