]> git.baikalelectronics.ru Git - kernel.git/commit
udp: Do not require sock in udp_tunnel_xmit_skb
authorTom Herbert <therbert@google.com>
Tue, 20 Jan 2015 19:23:04 +0000 (11:23 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Jan 2015 07:15:40 +0000 (23:15 -0800)
commit16962dbfdc316f2b9d241c6f2d8a2a0c92d38ff0
treeacb9482e367cef876bbc4aac946fdde32ad25b51
parent5c3ad2ff847dff8fcf88541208e987abd37d1863
udp: Do not require sock in udp_tunnel_xmit_skb

The UDP tunnel transmit functions udp_tunnel_xmit_skb and
udp_tunnel6_xmit_skb include a socket argument. The socket being
passed to the functions (from VXLAN) is a UDP created for receive
side. The only thing that the socket is used for in the transmit
functions is to get the setting for checksum (enabled or zero).
This patch removes the argument and and adds a nocheck argument
for checksum setting. This eliminates the unnecessary dependency
on a UDP socket for UDP tunnel transmit.

Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c
include/net/udp_tunnel.h
net/ipv4/geneve.c
net/ipv4/udp_tunnel.c
net/ipv6/ip6_udp_tunnel.c