diff options
author | Peng Li <lipeng321@huawei.com> | 2018-09-19 18:29:47 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-19 21:20:22 -0700 |
commit | 874bff0ba6cf884dde0220bfa8945f164e6da1d1 (patch) | |
tree | a1127dbd25e1b86d1391881026d7931b5505f818 /drivers/net/ethernet/hisilicon/hns3/hns3_enet.h | |
parent | 0e0cc31f6999df18bb5cfd0bd83c892ed5633975 (diff) |
net: hns3: Add default irq affinity
All irq will float to cpu0 if do not set irq affinity.
This patch adds default irq affinity in hns3 driver, users can
also change the irq affinity in OS.
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hns3_enet.h')
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns3/hns3_enet.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h index cb450d7ec8c1..31fa21f3a7b9 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h @@ -491,7 +491,9 @@ struct hns3_enet_tqp_vector { struct hns3_enet_ring_group rx_group; struct hns3_enet_ring_group tx_group; + cpumask_t affinity_mask; u16 num_tqps; /* total number of tqps in TQP vector */ + struct irq_affinity_notify affinity_notify; char name[HNAE3_INT_NAME_LEN]; |