diff options
author | Julian Wiedmann <jwi@linux.ibm.com> | 2018-09-17 17:35:59 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-17 09:10:25 -0700 |
commit | f231dc9dbd789b0f98a15941e3cebedb4ad72ad5 (patch) | |
tree | a5c9269ad860d6a4ef29a74338db39fa642106cd /drivers/s390/net/qeth_core.h | |
parent | s390/qeth: remove qeth_get_elements_no() (diff) | |
download | linux-dev-f231dc9dbd789b0f98a15941e3cebedb4ad72ad5.tar.xz linux-dev-f231dc9dbd789b0f98a15941e3cebedb4ad72ad5.zip |
s390/qeth: limit csum offload erratum to L3 devices
Combined L3+L4 csum offload is only required for some L3 HW. So for
L2 devices, don't offload the IP header csum calculation.
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Reference-ID: JUP 394553
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390/net/qeth_core.h')
-rw-r--r-- | drivers/s390/net/qeth_core.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/s390/net/qeth_core.h b/drivers/s390/net/qeth_core.h index 0857b1286660..b47fb95a49e9 100644 --- a/drivers/s390/net/qeth_core.h +++ b/drivers/s390/net/qeth_core.h @@ -892,11 +892,6 @@ static inline void qeth_tx_csum(struct sk_buff *skb, u8 *flags, int ipv) if ((ipv == 4 && ip_hdr(skb)->protocol == IPPROTO_UDP) || (ipv == 6 && ipv6_hdr(skb)->nexthdr == IPPROTO_UDP)) *flags |= QETH_HDR_EXT_UDP; - if (ipv == 4) { - /* some HW requires combined L3+L4 csum offload: */ - *flags |= QETH_HDR_EXT_CSUM_HDR_REQ; - ip_hdr(skb)->check = 0; - } } static inline void qeth_put_buffer_pool_entry(struct qeth_card *card, |