]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
Fix netpoll UDP input path
authorAubrey.Li <aubreylee@gmail.com>
Tue, 17 Apr 2007 21:46:33 +0000 (14:46 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 2 May 2007 00:05:58 +0000 (17:05 -0700)
commit100f4756d42036cca5968ef82542ecf6bccbc8a1
tree3fcbb77caf38e60781fae2e7e286adf1bb5d8488
parent3300bb14330a902331bcdfd0f69d9b0945585c51
Fix netpoll UDP input path

Netpoll UDP input handler needs to pull up the UDP headers
and handle receive checksum offloading properly just like
the normal UDP input path does else we get corrupted
checksums.

[NET]: Fix UDP checksum issue in net poll mode.

In net poll mode, the current checksum function doesn't consider the
kind of packet which is padded to reach a specific minimum length. I
believe that's the problem causing my test case failed. The following
patch fixed this issue.

Signed-off-by: Aubrey.Li <aubreylee@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/core/netpoll.c