OSDN Git Service

net: hns3: re-organize vector handle
authorYonglong Liu <liuyonglong@huawei.com>
Sat, 4 Jan 2020 02:49:25 +0000 (10:49 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Jan 2020 21:26:25 +0000 (13:26 -0800)
commit08a100689d4baf296d6898c687ea8d005da8d234
tree3f8763e6419a3476a5067842a86f35f276a1fe04
parent698a89541c223b247a3b08cd0b16c97344445d96
net: hns3: re-organize vector handle

To prevent loss user's IRQ affinity configuration when DOWN,
this patch moves out release/request operation of the vector
handle from net DOWN/UP, just do it when vector resource changes.

Signed-off-by: Yonglong Liu <liuyonglong@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