]> git.baikalelectronics.ru Git - kernel.git/commit
bareudp: Fixed bareudp receive handling
authorMartin Varghese <martin.varghese@nokia.com>
Thu, 12 Mar 2020 03:03:51 +0000 (08:33 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Mar 2020 05:54:27 +0000 (22:54 -0700)
commit8470936780f0f6dba823cb457d821c1e1066f200
treecdf4f84063651aac1d36f872f8fbd9488b8b2dab
parentfa3c360ac322fb50386df7b5d85b67c9f9564b20
bareudp: Fixed bareudp receive handling

Reverted commit "d20f7ab bareudp: remove unnecessary udp_encap_enable() in
bareudp_socket_create()"

An explicit call to udp_encap_enable is needed as the setup_udp_tunnel_sock
does not call udp_encap_enable if the if the socket is of type v6.

Bareudp device uses v6 socket to receive v4 & v6 traffic

CC: Taehee Yoo <ap420073@gmail.com>
Fixes: d20f7abf1b5f ("bareudp: remove unnecessary udp_encap_enable() in bareudp_socket_create()")
Signed-off-by: Martin Varghese <martin.varghese@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bareudp.c