net/hinic: remove optical module operation
authorGuoyang Zhou <zhouguoyang@huawei.com>
Tue, 24 Nov 2020 06:45:34 +0000 (14:45 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 25 Nov 2020 22:54:11 +0000 (23:54 +0100)
commitc07912fe9fb81700d48a691f67978b3ca1c56d45
treeda175c04a8ff15bdb0f16e2e94692de9ce094e2e
parentacf4aeafcef7baf187d980041ab9b23aa56733c1
net/hinic: remove optical module operation

Remove the operation of optical modules in the link function, because
when device binds from dpdk to kernel, it will be linked failed. This
function does not take effect in cable mode, therefore, optimization
is required.

Fixes: 54ac33869932 ("net/hinic: set link down and up")
Cc: stable@dpdk.org
Signed-off-by: Guoyang Zhou <zhouguoyang@huawei.com>
drivers/net/hinic/base/hinic_pmd_niccfg.c
drivers/net/hinic/base/hinic_pmd_niccfg.h
drivers/net/hinic/hinic_pmd_ethdev.c