]> git.droids-corp.org - dpdk.git/commit
net/ice: fix race condition in Rx timestamp
authorSimei Su <simei.su@intel.com>
Wed, 8 Jun 2022 02:46:01 +0000 (10:46 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Thu, 23 Jun 2022 05:49:38 +0000 (07:49 +0200)
commit3d6502ee01a92f445f84af6e0660c5a0044acc35
tree24d718acd54225f53d7c970fd2138d91a1b49fd9
parent721ef3f54578e33905f75c7196439981dc264289
net/ice: fix race condition in Rx timestamp

In multi-cores cases for Rx timestamp offload, to avoid phc time being
frequently overwritten, move related variables from ice_adapter to
ice_rx_queue structure, and each queue will handle timestamp calculation
by itself.

Fixes: 953e74e6b73a ("net/ice: enable Rx timestamp on flex descriptor")
Fixes: 5543827fc6df ("net/ice: improve performance of Rx timestamp offload")
Cc: stable@dpdk.org
Signed-off-by: Simei Su <simei.su@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/ice_ethdev.h
drivers/net/ice/ice_rxtx.c
drivers/net/ice/ice_rxtx.h