From: Ben Hutchings <bhutchings@solarflare.com>
To: Rayagond K <rayagond@vayavyalabs.com>
Cc: <netdev@vger.kernel.org>
Subject: Re: flow control handling in network driver
Date: Wed, 26 Sep 2012 15:49:49 +0200 [thread overview]
Message-ID: <1348667389.10741.34.camel@deadeye.wl.decadent.org.uk> (raw)
In-Reply-To: <CAJ3bTp4J4aLzPgDND6E6SMXZe05xnM7K9kHVCH7kD-=vYZNtHA@mail.gmail.com>
On Wed, 2012-09-26 at 14:48 +0530, Rayagond K wrote:
> Hi All,
>
> What is the use of two macros SUPPORTED_Pause and SUPPORTED_Asym_Pause
> which are defined in ethtool.h file.
>
> I have seen amny driver in lxr using above macros, for example tg3
> driver - uses these macros to advertise the phy capabilities.
>
> Flow control is MAC feature not PHY, hence when can one use above
> macros and what is the use of it. Should we use these macros to
> implement flow control in Ethernet driver ?
Ethernet autonegotiation includes flow control as well as speed and
duplex (and some other parameters). Any device that supports Ethernet
flow control and autonegotiation should set the supported flags
accordingly and check the advertised flags when programming the PHY for
autonegotiation. (This is complicated a bit by the separate ethtool
commands for flow control.)
Ben.
--
Ben Hutchings, Staff Engineer, Solarflare
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.
prev parent reply other threads:[~2012-09-26 13:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-26 9:18 flow control handling in network driver Rayagond K
2012-09-26 13:49 ` Ben Hutchings [this message]
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=1348667389.10741.34.camel@deadeye.wl.decadent.org.uk \
--to=bhutchings@solarflare.com \
--cc=netdev@vger.kernel.org \
--cc=rayagond@vayavyalabs.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