]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: initialize CPU reverse mapping
authorJian Shen <shenjian15@huawei.com>
Fri, 24 May 2019 11:19:45 +0000 (19:19 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 26 May 2019 20:24:56 +0000 (13:24 -0700)
commit29ae04ef2e11a6399f3838d0d5eecd45a5277286
tree47c67b81ce6ad3e27f14b19a05ee36f93c87f92c
parent62169c35ced75f634b6e54f7b328877355d69216
net: hns3: initialize CPU reverse mapping

Allocate CPU rmap and add entry for each irq. CPU rmap is
used in aRFS to get the queue number of the rx completion
interrupts.

In additional, remove the calling of
irq_set_affinity_notifier() in hns3_nic_init_irq(), because
we have registered notifier in irq_cpu_rmap_add() for each
vector, otherwise it may cause use-after-free issue.

Signed-off-by: Jian Shen <shenjian15@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.c