Commit 76643555 authored by Yunsheng Lin's avatar Yunsheng Lin Committed by David S. Miller

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: default avatarYunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: default avatarHuazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c8711956
...@@ -435,7 +435,7 @@ struct hns3_enet_ring { ...@@ -435,7 +435,7 @@ struct hns3_enet_ring {
int pending_buf; int pending_buf;
struct sk_buff *skb; struct sk_buff *skb;
struct sk_buff *tail_skb; struct sk_buff *tail_skb;
}; } ____cacheline_internodealigned_in_smp;
enum hns3_flow_level_range { enum hns3_flow_level_range {
HNS3_FLOW_LOW = 0, HNS3_FLOW_LOW = 0,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment