Re: [PATCH v3 1/3] net: rework SIOCGSTAMP ioctl handling

2019-04-17 Thread Willem de Bruijn
On Wed, Apr 17, 2019 at 4:54 PM Arnd Bergmann wrote: > > The SIOCGSTAMP/SIOCGSTAMPNS ioctl commands are implemented by many > socket protocol handlers, and all of those end up calling the same > sock_get_timestamp()/sock_get_timestampns() helper functions, which > results in a lot of duplicate cod

[PATCH v3 1/3] net: rework SIOCGSTAMP ioctl handling

2019-04-17 Thread Arnd Bergmann
The SIOCGSTAMP/SIOCGSTAMPNS ioctl commands are implemented by many socket protocol handlers, and all of those end up calling the same sock_get_timestamp()/sock_get_timestampns() helper functions, which results in a lot of duplicate code. With the introduction of 64-bit time_t on 32-bit architectur