• Aubrey.Li's avatar
    Fix netpoll UDP input path · 100f4756
    Aubrey.Li authored
    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: default avatarAubrey.Li <aubreylee@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    100f4756
netpoll.c 18.6 KB