From: Yunsheng Lin Date: Sat, 19 Oct 2019 08:03:53 +0000 (+0800) Subject: net: hns3: make struct hns3_enet_ring cacheline aligned X-Git-Tag: Ubuntu-5.13.0-19.19~7267^2~340^2~3 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=76643555a145b06ec6dcc0d1cc0691575dceffc9;p=mirror_ubuntu-jammy-kernel.git net: hns3: make struct hns3_enet_ring cacheline aligned Since struct hns3_enet_ring is a frequently used in critical data path, so make it cacheline aligned as struct hns3_enet_tqp_vector. Signed-off-by: Yunsheng Lin Signed-off-by: Huazhong Tan Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h index 8a88002313fe..0725dc52341e 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h @@ -435,7 +435,7 @@ struct hns3_enet_ring { int pending_buf; struct sk_buff *skb; struct sk_buff *tail_skb; -}; +} ____cacheline_internodealigned_in_smp; enum hns3_flow_level_range { HNS3_FLOW_LOW = 0,