Paolo Abeni 2b5a921740 udp4: fix IP_CMSG_CHECKSUM for connected sockets
commit 2abb7cdc0dc8 ("udp: Add support for doing checksum
unnecessary conversion") left out the early demux path for
connected sockets. As a result IP_CMSG_CHECKSUM gives wrong
values for such socket when GRO is not enabled/available.

This change addresses the issue by moving the csum conversion to a
common helper and using such helper in both the default and the
early demux rx path.

Fixes: 2abb7cdc0dc8 ("udp: Add support for doing checksum unnecessary conversion")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-09-16 15:27:44 -07:00
..
2018-05-16 07:24:30 +02:00
2017-10-21 01:33:19 +01:00
2018-04-23 10:21:24 -04:00
2018-07-07 10:58:49 +09:00
2018-03-27 13:18:09 -04:00
2018-06-22 13:43:27 +09:00
2018-07-24 14:10:43 -07:00
2017-10-16 21:24:25 +01:00
2018-02-28 11:43:28 -05:00