]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - net/socket.c
net-timestamp: sock_tx_timestamp() fix
authorEric Dumazet <edumazet@google.com>
Wed, 6 Aug 2014 09:49:29 +0000 (11:49 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Aug 2014 19:38:07 +0000 (12:38 -0700)
commit140c55d4b59581680dc8963612bdc79d19f7bef6
treee04f86ce3087eff5aaf325031b1632d39e83a7f9
parent85417aef44fc58b08773117ceb1bc6ca5684e973
net-timestamp: sock_tx_timestamp() fix

sock_tx_timestamp() should not ignore initial *tx_flags value, as TCP
stack can store SKBTX_SHARED_FRAG in it.

Also first argument (struct sock *) can be const.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Fixes: 4ed2d765dfac ("net-timestamp: TCP timestamping")
Cc: Willem de Bruijn <willemb@google.com>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sock.h
net/socket.c