udp6: fix encap return code for resubmitting
authorPaolo Abeni <pabeni@redhat.com>
Wed, 17 Oct 2018 09:44:04 +0000 (11:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Nov 2018 13:52:49 +0000 (14:52 +0100)
commit189771d69e14404b0e6eb57aa40bed2a95f7e2c2
tree3186ced66585b45a5bcbcda45b5f8538bf5257af
parent606694e5ec81d598c0300f9e16db0464659df557
udp6: fix encap return code for resubmitting

[ Upstream commit 84dad55951b0d009372ec21760b650634246e144 ]

The commit eb63f2964dbe ("udp6: add missing checks on edumux packet
processing") used the same return code convention of the ipv4 counterpart,
but ipv6 uses the opposite one: positive values means resubmit.

This change addresses the issue, using positive return value for
resubmitting. Also update the related comment, which was broken, too.

Fixes: eb63f2964dbe ("udp6: add missing checks on edumux packet processing")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/udp.c