Skip to content

Commit 429205d

Browse files
lategoodbyedavem330
authored andcommitted
net: qualcomm: fix QCA7000 checksum handling
Based on tests the QCA7000 doesn't support checksum offloading. So assume ip_summed is CHECKSUM_NONE and let the kernel take care of the checksum handling. This fixes data transfer issues in noisy environments. Reported-by: Michael Heimpold <[email protected]> Fixes: 291ab06 ("net: qualcomm: new Ethernet over SPI driver for QCA7000") Signed-off-by: Stefan Wahren <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent a16ef91 commit 429205d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/net/ethernet/qualcomm/qca_spi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ qcaspi_receive(struct qcaspi *qca)
434434
skb_put(qca->rx_skb, retcode);
435435
qca->rx_skb->protocol = eth_type_trans(
436436
qca->rx_skb, qca->rx_skb->dev);
437-
qca->rx_skb->ip_summed = CHECKSUM_UNNECESSARY;
437+
skb_checksum_none_assert(qca->rx_skb);
438438
netif_rx_ni(qca->rx_skb);
439439
qca->rx_skb = netdev_alloc_skb_ip_align(net_dev,
440440
net_dev->mtu + VLAN_ETH_HLEN);

drivers/net/ethernet/qualcomm/qca_uart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ qca_tty_receive(struct serdev_device *serdev, const unsigned char *data,
107107
skb_put(qca->rx_skb, retcode);
108108
qca->rx_skb->protocol = eth_type_trans(
109109
qca->rx_skb, qca->rx_skb->dev);
110-
qca->rx_skb->ip_summed = CHECKSUM_UNNECESSARY;
110+
skb_checksum_none_assert(qca->rx_skb);
111111
netif_rx_ni(qca->rx_skb);
112112
qca->rx_skb = netdev_alloc_skb_ip_align(netdev,
113113
netdev->mtu +

0 commit comments

Comments
 (0)