Skip to content

Commit

Permalink
net: hns3: make struct hns3_enet_ring cacheline aligned
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Huazhong Tan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Yunsheng Lin authored and davem330 committed Oct 21, 2019
1 parent c871195 commit 7664355
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/hisilicon/hns3/hns3_enet.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7664355

Please sign in to comment.