diff options
author | Daode Huang <huangdaode@hisilicon.com> | 2016-06-21 06:56:34 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-06-21 11:51:55 +0300 |
commit | 454784d85de372991ad2e473d562d4ad31f4502a (patch) | |
tree | d1d7aab29482c5b1db61b163aa107d875d10b419 /drivers/net/ethernet/hisilicon/hns/hnae.c | |
parent | ad59a17f0a8ea31e6235e77fb4dda3cd22978914 (diff) | |
download | linux-454784d85de372991ad2e473d562d4ad31f4502a.tar.xz |
net: hns: delete redundancy ring enable operations
When network interface is enabled, the ring enable operation is
conducted twice. This patch deletes the redundancy code of ring enable,
and integrates hnae_ae_ops.toggle_queue_status other functions to
hns_ae_start.
Signed-off-by: Daode Huang <huangdaode@hisilicon.com>
Signed-off-by: Yisen Zhuang <Yisen.Zhuang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns/hnae.c')
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns/hnae.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns/hnae.c b/drivers/net/ethernet/hisilicon/hns/hnae.c index 5d3047cc8380..c54c6fac0d1d 100644 --- a/drivers/net/ethernet/hisilicon/hns/hnae.c +++ b/drivers/net/ethernet/hisilicon/hns/hnae.c @@ -400,7 +400,6 @@ int hnae_ae_register(struct hnae_ae_dev *hdev, struct module *owner) if (!hdev->ops || !hdev->ops->get_handle || !hdev->ops->toggle_ring_irq || - !hdev->ops->toggle_queue_status || !hdev->ops->get_status || !hdev->ops->adjust_link) return -EINVAL; |