浏览代码

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>
Frank Blaschka 15 年之前
父节点
当前提交
8fa9208e30
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/s390/net/qeth_l3_main.c

+ 1 - 0
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 ...*/
 	/*fix header to TSO values ...*/
 	hdr->hdr.hdr.l3.id = QETH_HEADER_TYPE_TSO;
 	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 ...*/
 	/*set values which are fix for the first approach ...*/
 	hdr->ext.hdr_tot_len = (__u16) sizeof(struct qeth_hdr_ext_tso);
 	hdr->ext.hdr_tot_len = (__u16) sizeof(struct qeth_hdr_ext_tso);
 	hdr->ext.imb_hdr_no  = 1;
 	hdr->ext.imb_hdr_no  = 1;