]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit714f76b56bbc2136dd3ce20d37f775ce6a59d90a
treec90df4dd6d3b7668db838025d06ca38c1c0f2a15
parentd1b627cb49431f62b2e7d61498592f2ea935eef2
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