]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbed1ed97f218731fd96c894f701db1ed85491f18
treee04f86ce3087eff5aaf325031b1632d39e83a7f9
parent96b1a029b1357b6189da4fe76541596c8d49dd22
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: 1067b9259770 ("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