]> git.baikalelectronics.ru Git - kernel.git/commit
udplite: fast-path computation of checksum coverage
authorGerrit Renker <gerrit@erg.abdn.ac.uk>
Mon, 17 Oct 2011 23:07:30 +0000 (19:07 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Oct 2011 23:07:30 +0000 (19:07 -0400)
commit7814e9c5b88e322c5eb37fbe3bcfca69bd98d8ed
treefc7808103cdf00bb8a42247fccf638014798dd35
parent3eed7a4b93916070d75002487b4be7fb95e29bd5
udplite: fast-path computation of checksum coverage

Commit 38712ecbdfc1dd1a9603c9ee7ebd0ae074663079 of 1 March this year ("udp: Add
lockless transmit path") introduced a new fast TX path that broke the checksum
coverage computation of UDP-lite, which so far depended on up->len (only set
if the socket is locked and 0 in the fast path).

Fixed by providing both fast- and slow-path computation of checksum coverage.
The latter can be removed when UDP(-lite)v6 also uses a lockless transmit path.

Reported-by: Thomas Volkert <thomas@homer-conferencing.com>
Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/udplite.h