net: hns3: remove hclge_get_vector_index from hclge_bind_ring_with_vector
authorPeng Li <lipeng321@huawei.com>
Thu, 28 Jun 2018 04:12:19 +0000 (12:12 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Jun 2018 02:06:34 +0000 (11:06 +0900)
commitb204bc74840080136bf11643e998dc83afc2c11e
treec90df4dd6d3b7668db838025d06ca38c1c0f2a15
parent16c0cd074f2fde76541395c6b269dd3a44d7425b
net: hns3: remove hclge_get_vector_index from hclge_bind_ring_with_vector

In hclge_unmap_ring_frm_vector, there are 2 steps:
step 1: get vector index.
step 2 unbind ring with vector.

But it gets vector id again in step 2 interface. This patch
removes hclge_get_vector_index from hclge_bind_ring_with_vector,
and make the step the same with hns3 PF driver.

Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c