Xin Long <lucien....@gmail.com> wrote: > When doing encap_enable/increasing encap_needed_key, up->encap_enabled > is not set in rxrpc_open_socket(), and it will cause encap_needed_key > not being decreased in udpv6_destroy_sock(). > > This patch is to improve it by just calling udp_tunnel_encap_enable() > where it increases both UDP and UDPv6 encap_needed_key and sets > up->encap_enabled. > > v4->v5: > - add the missing '#include <net/udp_tunnel.h>', as David Howells > noticed. > > Acked-and-tested-by: David Howells <dhowe...@redhat.com> > Signed-off-by: Xin Long <lucien....@gmail.com>
Looks good. David