mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
07f3355df7
The nes infiniband driver uses current_kernel_time() to get a nanosecond granunarity timestamp to initialize its tcp sequence counters. This is one of only a few remaining users of that deprecated function, so we should try to get rid of it. Aside from using a deprecated API, there are several problems I see here: - Using a CLOCK_REALTIME based time source makes it predictable in case the time base is synchronized. - Using a coarse timestamp means it only gets updated once per jiffie, making it even more predictable in order to avoid having to access the hardware clock source - The upper 2 bits are always zero because the nanoseconds are at most 999999999. For the Linux TCP implementation, we use secure_tcp_seq(), which appears to be appropriate here as well, and solves all the above problems. i40iw uses a variant of the same code, so I do that same thing there for ipv4. Unlike nes, i40e also supports ipv6, which needs to call secure_tcpv6_seq instead. Acked-by: Shiraz Saleem <shiraz.saleem@intel.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com> |
||
---|---|---|
.. | ||
i40iw_cm.c | ||
i40iw_cm.h | ||
i40iw_ctrl.c | ||
i40iw_d.h | ||
i40iw_hmc.c | ||
i40iw_hmc.h | ||
i40iw_hw.c | ||
i40iw_main.c | ||
i40iw_osdep.h | ||
i40iw_p.h | ||
i40iw_pble.c | ||
i40iw_pble.h | ||
i40iw_puda.c | ||
i40iw_puda.h | ||
i40iw_register.h | ||
i40iw_status.h | ||
i40iw_type.h | ||
i40iw_uk.c | ||
i40iw_user.h | ||
i40iw_utils.c | ||
i40iw_verbs.c | ||
i40iw_verbs.h | ||
i40iw_vf.c | ||
i40iw_vf.h | ||
i40iw_virtchnl.c | ||
i40iw_virtchnl.h | ||
i40iw.h | ||
Kconfig | ||
Makefile |