DPDK patches and discussions
 help / color / mirror / Atom feed
From: Usman Tanveer <usman.tanveer@emumba.com>
To: dev@dpdk.org
Cc: ivan.ilchenko@oktetlabs.ru, arybchenko@solarflare.com,
	 remy.horton@intel.com
Subject: [dpdk-dev] examples/ethtool: issue in rte_ethtool_net_open()
Date: Mon, 28 Mar 2022 17:09:21 +0500	[thread overview]
Message-ID: <CAH_O0bx0fn-FapFm5sZn3=DV91K3aRkVV0cd6eE=eBkGihmNkA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 438 bytes --]

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)?

[-- Attachment #2: Type: text/html, Size: 601 bytes --]

                 reply	other threads:[~2022-03-28 12:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAH_O0bx0fn-FapFm5sZn3=DV91K3aRkVV0cd6eE=eBkGihmNkA@mail.gmail.com' \
    --to=usman.tanveer@emumba.com \
    --cc=arybchenko@solarflare.com \
    --cc=dev@dpdk.org \
    --cc=ivan.ilchenko@oktetlabs.ru \
    --cc=remy.horton@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).