]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
sock: don't enable netstamp for af_unix sockets
authorHannes Frederic Sowa <hannes@stressinduktion.org>
Mon, 26 Oct 2015 12:51:37 +0000 (13:51 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Oct 2015 02:39:14 +0000 (19:39 -0700)
commit080a270f5adec1ada1357eb66321e7222cc34301
tree5f45c01b2412b000dfe773a121e426c4e8dbe9c5
parent6092db1aba2d151acd40a0370b80b5c043936d2d
sock: don't enable netstamp for af_unix sockets

netstamp_needed is toggled for all socket families if they request
timestamping. But some protocols don't need the lower-layer timestamping
code at all. This patch starts disabling it for af-unix.

E.g. systemd enables timestamping during boot-up on the journald af-unix
sockets, thus causing the system to globally enable timestamping in the
lower networking stack. Still, it is very probable that timestamping
gets activated, by e.g. dhclient or various NTP implementations.

Reported-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock.c