[dpdk-dev] examples/ethtool: issue in rte_ethtool_net_open()

Usman Tanveer usman.tanveer at emumba.com
Mon Mar 28 14:09:21 CEST 2022


Hi,

I have a question from dpdk-ethtool.

*file: examples/ethtool/lib/rte_ethtool.c*











*intrte_ethtool_net_open(uint16_t port_id){ int ret; ret =
rte_eth_dev_stop(port_id); if (ret != 0) return ret; return
rte_eth_dev_start(port_id);}*

Does anyone know the purpose of calling rte_eth_dev_stop(port_id) before
calling the start function, it stops the port and then starts it again. Why
not just call rte_eth_dev_start(port_id)?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/dev/attachments/20220328/5e818cfc/attachment.htm>


More information about the dev mailing list