net/hns3: fix pseudo-sharing between threads
authorHuisong Li <lihuisong@huawei.com>
Thu, 5 May 2022 12:27:03 +0000 (20:27 +0800)
committerFerruh Yigit <ferruh.yigit@xilinx.com>
Thu, 12 May 2022 08:28:54 +0000 (10:28 +0200)
commitec0147b5690e6cae2cc4555f78b87defee59c946
treebdf556cf7d42be3a23910e2096c4d3113adceb55
parenta65342d9d5d25cf0a9d44388325e2251daa83eba
net/hns3: fix pseudo-sharing between threads

Some fields in the end of 'struct hns3_rx_queue' and
'struct hns3_tx_queue' are not accessed in the I/O path.
But these fields may be accessed in other threads, which may lead to the
problem of cache pseudo-sharing of IO threads. This patch add a
cacheline alignment to avoid it.

Fixes: 9261fd3caf1f ("net/hns3: improve IO path data cache usage")
Cc: stable@dpdk.org
Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/hns3/hns3_rxtx.h