All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ivan Boule <ivan.boule-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
To: Ouyang Changchun
	<changchun.ouyang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
	dev-VfR2kkLFssw@public.gmane.org
Subject: Re: [PATCH 0/3] Support administrative link up and link down
Date: Thu, 22 May 2014 15:17:14 +0200	[thread overview]
Message-ID: <537DF8DA.5000402@6wind.com> (raw)
In-Reply-To: <1400739073-32011-1-git-send-email-changchun.ouyang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>

On 05/22/2014 08:11 AM, Ouyang Changchun wrote:
> This patch series contain the following 3 items:
> 1. Add API to support administrative link up and down.
> 2. Implement the functionality of administrative link up and down in IXGBE PMD.
> 3. Add command in testpmd to test the functionality of administrative link up and down of PMD.
>
> Ouyang Changchun (3):
>    Add API for supporting administrative link up and down.
>    Implement the functionality of administrative link up and down in
>      IXGBE PMD.
>    Add command line to test the functionality of administrative link up
>      and down of PMD in testpmd.
>
>   app/test-pmd/cmdline.c              | 78 +++++++++++++++++++++++++++++++++++++
>   app/test-pmd/testpmd.c              | 14 +++++++
>   app/test-pmd/testpmd.h              |  2 +
>   lib/librte_ether/rte_ethdev.c       | 38 ++++++++++++++++++
>   lib/librte_ether/rte_ethdev.h       | 34 ++++++++++++++++
>   lib/librte_pmd_ixgbe/ixgbe_ethdev.c | 58 +++++++++++++++++++++++++++
>   6 files changed, 224 insertions(+)
>

Hi Changchun,

The 2 functions "rte_eth_dev_admin_link_up" and 
"rte_eth_dev_admin_link_down"
don't have an equivalent in the Linux kernel, thus I am wondering what 
is their effective usage from a network application perspective.
Could you briefly explain in which use case these functions can be used for?

By the way, it's not completely evident to infer the exact semantics of 
these 2 functions from their name.
In particular, I do not see what the term "admin" brings to the 
understanding of their role. If it is to suggest that these functions 
are intended to force the link to a different state of its initial 
[self-detected] state, then the term "force" would be more appropriate.

Otherwise, if eventually these functions appear to be mandatory, I 
suggest to rename them "rte_eth_dev_link_start" and 
"rte_eth_dev_link_stop" respectively, and to apply the same naming 
conventions in the 2 other patches.

It might also be worth documenting in the comment section of the
prototype of these 2 functions whether it makes sense or not to support
a notion of link that can be dynamically started or stopped in
non-physical PMDs (vmxnet3, virtio, etc).

Regards,
Ivan



-- 
Ivan Boule
6WIND Development Engineer

  parent reply	other threads:[~2014-05-22 13:17 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-22  6:11 [PATCH 0/3] Support administrative link up and link down Ouyang Changchun
     [not found] ` <1400739073-32011-1-git-send-email-changchun.ouyang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2014-05-22  6:11   ` [PATCH 1/3] ether: Add API to support administrative link up and down Ouyang Changchun
2014-05-22  6:11   ` [PATCH 2/3] ixgbe: Implement the functionality of administrative link up and down in IXGBE PMD Ouyang Changchun
2014-05-22  6:11   ` [PATCH 3/3] testpmd: Add commands to test administrative link up and down of PMD Ouyang Changchun
2014-05-22 13:17   ` Ivan Boule [this message]
     [not found]     ` <537DF8DA.5000402-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2014-05-22 14:44       ` [PATCH 0/3] Support administrative link up and link down Ouyang, Changchun
     [not found]         ` <F52918179C57134FAEC9EA62FA2F9625117AABD8-E2R4CRU6q/6iAffOGbnezLfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-05-22 15:31           ` Ivan Boule
     [not found]             ` <537E1842.5010207-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2014-05-23  2:08               ` Ouyang, Changchun
     [not found]                 ` <F52918179C57134FAEC9EA62FA2F9625117AAEFA-E2R4CRU6q/6iAffOGbnezLfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-05-23  9:24                   ` Ivan Boule
     [not found]                     ` <537F13D4.4030901-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2014-05-28  1:42                       ` Ouyang, Changchun

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=537DF8DA.5000402@6wind.com \
    --to=ivan.boule-pdr9zngts4eavxtiumwx3w@public.gmane.org \
    --cc=changchun.ouyang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=dev-VfR2kkLFssw@public.gmane.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.