From: Frank Blaschka Date: Fri, 26 Nov 2010 02:41:20 +0000 (+0000) Subject: qeth: l3 fix len in tso hdr X-Git-Tag: v3.0~2504^2~411 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8fa9208e305e24978b897d6ea057604444ce77e1;p=platform%2Fkernel%2Flinux-amlogic.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/s390/net/qeth_l3_main.c b/drivers/s390/net/qeth_l3_main.c index 3ddd5ad..a1abb37 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, /*fix header to TSO values ...*/ hdr->hdr.hdr.l3.id = QETH_HEADER_TYPE_TSO; + hdr->hdr.hdr.l3.length = skb->len - sizeof(struct qeth_hdr_tso); /*set values which are fix for the first approach ...*/ hdr->ext.hdr_tot_len = (__u16) sizeof(struct qeth_hdr_ext_tso); hdr->ext.imb_hdr_no = 1;