]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: hns3: make struct hns3_enet_ring cacheline aligned
authorYunsheng Lin <linyunsheng@huawei.com>
Sat, 19 Oct 2019 08:03:53 +0000 (16:03 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Oct 2019 16:22:09 +0000 (09:22 -0700)
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 <linyunsheng@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.h

index 8a88002313fe7676482080262ca384ff77aab79e..0725dc52341e4719715d48f4d953db65a6dfdcc0 100644 (file)
@@ -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,