]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/suse-2.6.27.39/patches.arch/s390-02-06-qeth-offset.patch
Imported linux-2.6.27.39 suse/xen patches.
[ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.arch / s390-02-06-qeth-offset.patch
CommitLineData
2cb7cef9
BS
1From: Gerald Schaefer <geraldsc@de.ibm.com>
2Subject: qeth: fix offset error in non prealloc header path
3References: bnc#434333,LTC#48840
4
5Symptom: bad or no VSWITCH/guest lan network traffic
6Problem: Offset error in the non prealloc header path
7Solution: For the non preallocated qeth header code path we should not
8 change the header length.
9
10Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com>
11
12Acked-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
18Index: 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