diff options
Diffstat (limited to 'drivers/s390/net')
-rw-r--r-- | drivers/s390/net/qeth_core_main.c | 2 | ||||
-rw-r--r-- | drivers/s390/net/qeth_l3_main.c | 20 |
2 files changed, 15 insertions, 7 deletions
diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_main.c index c827d69b5a91..63c9c05d6147 100644 --- a/drivers/s390/net/qeth_core_main.c +++ b/drivers/s390/net/qeth_core_main.c | |||
@@ -1140,6 +1140,8 @@ static int qeth_setup_card(struct qeth_card *card) | |||
1140 | card->ipato.enabled = 0; | 1140 | card->ipato.enabled = 0; |
1141 | card->ipato.invert4 = 0; | 1141 | card->ipato.invert4 = 0; |
1142 | card->ipato.invert6 = 0; | 1142 | card->ipato.invert6 = 0; |
1143 | if (card->info.type == QETH_CARD_TYPE_IQD) | ||
1144 | card->options.checksum_type = NO_CHECKSUMMING; | ||
1143 | /* init QDIO stuff */ | 1145 | /* init QDIO stuff */ |
1144 | qeth_init_qdio_info(card); | 1146 | qeth_init_qdio_info(card); |
1145 | return 0; | 1147 | return 0; |
diff --git a/drivers/s390/net/qeth_l3_main.c b/drivers/s390/net/qeth_l3_main.c index 5873240c3cea..b36b5cdf9000 100644 --- a/drivers/s390/net/qeth_l3_main.c +++ b/drivers/s390/net/qeth_l3_main.c | |||
@@ -1920,16 +1920,22 @@ static inline __u16 qeth_l3_rebuild_skb(struct qeth_card *card, | |||
1920 | hdr->hdr.l3.vlan_id : *((u16 *)&hdr->hdr.l3.dest_addr[12]); | 1920 | hdr->hdr.l3.vlan_id : *((u16 *)&hdr->hdr.l3.dest_addr[12]); |
1921 | } | 1921 | } |
1922 | 1922 | ||
1923 | skb->ip_summed = card->options.checksum_type; | 1923 | switch (card->options.checksum_type) { |
1924 | if (card->options.checksum_type == HW_CHECKSUMMING) { | 1924 | case SW_CHECKSUMMING: |
1925 | skb->ip_summed = CHECKSUM_NONE; | ||
1926 | break; | ||
1927 | case NO_CHECKSUMMING: | ||
1928 | skb->ip_summed = CHECKSUM_UNNECESSARY; | ||
1929 | break; | ||
1930 | case HW_CHECKSUMMING: | ||
1925 | if ((hdr->hdr.l3.ext_flags & | 1931 | if ((hdr->hdr.l3.ext_flags & |
1926 | (QETH_HDR_EXT_CSUM_HDR_REQ | | 1932 | (QETH_HDR_EXT_CSUM_HDR_REQ | |
1927 | QETH_HDR_EXT_CSUM_TRANSP_REQ)) == | 1933 | QETH_HDR_EXT_CSUM_TRANSP_REQ)) == |
1928 | (QETH_HDR_EXT_CSUM_HDR_REQ | | 1934 | (QETH_HDR_EXT_CSUM_HDR_REQ | |
1929 | QETH_HDR_EXT_CSUM_TRANSP_REQ)) | 1935 | QETH_HDR_EXT_CSUM_TRANSP_REQ)) |
1930 | skb->ip_summed = CHECKSUM_UNNECESSARY; | 1936 | skb->ip_summed = CHECKSUM_UNNECESSARY; |
1931 | else | 1937 | else |
1932 | skb->ip_summed = SW_CHECKSUMMING; | 1938 | skb->ip_summed = CHECKSUM_NONE; |
1933 | } | 1939 | } |
1934 | 1940 | ||
1935 | return vlan_id; | 1941 | return vlan_id; |