aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/net
diff options
context:
space:
mode:
authorFrank Blaschka <frank.blaschka@de.ibm.com>2010-11-25 21:41:20 -0500
committerDavid S. Miller <davem@davemloft.net>2010-11-28 21:13:18 -0500
commit8fa9208e305e24978b897d6ea057604444ce77e1 (patch)
tree09f528d19e0c70d3984306d853180cb387143c07 /drivers/s390/net
parent2b6203bb7d85e6a2ca2088b8684f30be70246ddf (diff)
qeth: l3 fix len in tso hdr
The tso hdr is longer then the regular l3 hdr. Fix the calculation of the total len by accounting the size of the tso hdr. Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390/net')
-rw-r--r--drivers/s390/net/qeth_l3_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/s390/net/qeth_l3_main.c b/drivers/s390/net/qeth_l3_main.c
index 3ddd5add7984..a1abb37db000 100644
--- a/drivers/s390/net/qeth_l3_main.c
+++ b/drivers/s390/net/qeth_l3_main.c
@@ -2939,6 +2939,7 @@ static void qeth_tso_fill_header(struct qeth_card *card,
2939 2939
2940 /*fix header to TSO values ...*/ 2940 /*fix header to TSO values ...*/
2941 hdr->hdr.hdr.l3.id = QETH_HEADER_TYPE_TSO; 2941 hdr->hdr.hdr.l3.id = QETH_HEADER_TYPE_TSO;
2942 hdr->hdr.hdr.l3.length = skb->len - sizeof(struct qeth_hdr_tso);
2942 /*set values which are fix for the first approach ...*/ 2943 /*set values which are fix for the first approach ...*/
2943 hdr->ext.hdr_tot_len = (__u16) sizeof(struct qeth_hdr_ext_tso); 2944 hdr->ext.hdr_tot_len = (__u16) sizeof(struct qeth_hdr_ext_tso);
2944 hdr->ext.imb_hdr_no = 1; 2945 hdr->ext.imb_hdr_no = 1;