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)
commitffab9691bcb2fe2594f4c38bfceb4d9685b93b87
tree47c67b81ce6ad3e27f14b19a05ee36f93c87f92c
parent18e8817126d2551fb9b0f90ceb6e130efc2196ca
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