]> git.baikalelectronics.ru Git - kernel.git/commit
dccp: constify dccp_make_response() socket argument
authorEric Dumazet <edumazet@google.com>
Fri, 25 Sep 2015 14:39:22 +0000 (07:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Sep 2015 20:00:39 +0000 (13:00 -0700)
commit92290971b39432376eb8c695bf0b13e3fd47fd13
tree7f6e6d083adf632704d496642eab95ad3c969e93
parent57f82f3d615ca12a4861b4433c90ec2b5acaa741
dccp: constify dccp_make_response() socket argument

Like tcp_make_synack() the only time we might change the socket is
when calling sock_wmalloc(), which is using atomic operation to
update sk->sk_wmem_alloc

Also use MAX_DCCP_HEADER as both IPv4/IPv6 use this value for max_header.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dccp/dccp.h
net/dccp/output.c