]> git.baikalelectronics.ru Git - kernel.git/commit
r8152: fix wrong checksum status for received IPv4 packets
authorHayes Wang <hayeswang@realtek.com>
Fri, 2 Feb 2018 08:43:35 +0000 (16:43 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Feb 2018 00:19:00 +0000 (19:19 -0500)
commit3fe7b0a46afba21280519d51b064d8c9dcf6b163
treecd6613a0e4a81bd4b2b06535db625b11824e123c
parent9135e7f8052a118066d4e70fe7c3eb21878c745a
r8152: fix wrong checksum status for received IPv4 packets

The device could only check the checksum of TCP and UDP packets. Therefore,
for the IPv4 packets excluding TCP and UDP, the check of checksum is necessary,
even though the IP checksum is correct.

Take ICMP for example, The IP checksum may be correct, but the ICMP checksum
may be wrong.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c