net/hns3: support set link up/down for PF
authorHuisong Li <lihuisong@huawei.com>
Mon, 26 Jul 2021 10:59:40 +0000 (18:59 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 17 Aug 2021 10:59:00 +0000 (12:59 +0200)
commit168b7d79dada93ec6dfa7aa806e97c1e6d728696
treec5f67f81cd765e62ebcebb1ca31d9ce76eccae53
parent69f9b420d858ddbecb8d05c17fe77dbaf76df187
net/hns3: support set link up/down for PF

This patch adds set link up/down feature. RxTx datapath and link status
will be disabled when dev_set_link_down() is called, and can be enabled by
dev_start() or dev_set_link_up().

Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/hns3/hns3_ethdev.c
drivers/net/hns3/hns3_ethdev.h
drivers/net/hns3/hns3_rxtx.c
drivers/net/hns3/hns3_rxtx.h