ip: Move checksum convert defines to inet
Move convert_csum from udp_sock to inet_sock. This allows the possibility that we can use convert checksum for different types of sockets and also allows convert checksum to be enabled from inet layer (what we'll want to do when enabling IP_CHECKSUM cmsg). Signed-off-by: Tom Herbert <therbert@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
149118d893
commit
224d019c4f
@@ -63,7 +63,7 @@ void setup_udp_tunnel_sock(struct net *net, struct socket *sock,
|
||||
inet_sk(sk)->mc_loop = 0;
|
||||
|
||||
/* Enable CHECKSUM_UNNECESSARY to CHECKSUM_COMPLETE conversion */
|
||||
udp_set_convert_csum(sk, true);
|
||||
inet_inc_convert_csum(sk);
|
||||
|
||||
rcu_assign_sk_user_data(sk, cfg->sk_user_data);
|
||||
|
||||
|
Reference in New Issue
Block a user