Commit 8fa9208e305e24978b897d6ea057604444ce77e1
Committed by
David S. Miller
1 parent
2b6203bb7d
Exists in
master
and in
7 other branches
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>
Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff
drivers/s390/net/qeth_l3_main.c
... | ... | @@ -2939,6 +2939,7 @@ |
2939 | 2939 | |
2940 | 2940 | /*fix header to TSO values ...*/ |
2941 | 2941 | hdr->hdr.hdr.l3.id = QETH_HEADER_TYPE_TSO; |
2942 | + hdr->hdr.hdr.l3.length = skb->len - sizeof(struct qeth_hdr_tso); | |
2942 | 2943 | /*set values which are fix for the first approach ...*/ |
2943 | 2944 | hdr->ext.hdr_tot_len = (__u16) sizeof(struct qeth_hdr_ext_tso); |
2944 | 2945 | hdr->ext.imb_hdr_no = 1; |