]> git.baikalelectronics.ru Git - kernel.git/commit
udp4: fix IP_CMSG_CHECKSUM for connected sockets
authorPaolo Abeni <pabeni@redhat.com>
Thu, 13 Sep 2018 14:27:20 +0000 (16:27 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 16 Sep 2018 22:27:44 +0000 (15:27 -0700)
commit8194418e2c751a53562b3b1cc760e5c9f015e8b4
tree384b3c86784345a2f25cce36d43ff4a3ea9e729b
parent55402e0bb3830178f230327b4c75daf924197d99
udp4: fix IP_CMSG_CHECKSUM for connected sockets

commit f331369404b4 ("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: f331369404b4 ("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>
net/ipv4/udp.c