]> 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)
commit97b13f024275b753282163a0c41ac136dae4d01c
treee04f86ce3087eff5aaf325031b1632d39e83a7f9
parent557471ebdb18ed5711d49a04f5315bedfe4f384f
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: 9a28431b5a06 ("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