Netdev List
 help / color / mirror / Atom feed
From: <Parav.Pandit@Emulex.Com>
To: <bhutchings@solarflare.com>, <Parav.Pandit@Emulex.Com>
Cc: <davem@davemloft.net>, <netdev@vger.kernel.org>
Subject: RE: [PATCH] net: added support for 40GbE link.
Date: Wed, 27 Jun 2012 09:08:26 +0000	[thread overview]
Message-ID: <bb3ccb69-cd3f-42e5-8596-ba11b9b5a43f@CMEXHTCAS1.ad.emulex.com> (raw)
In-Reply-To: <1340115094.2692.10.camel@bwh-desktop.uk.solarflarecom.com>

o.k. I am sending PATCH v1 with suggested fixes in short while for ethtool and kernel both.

Parav

> -----Original Message-----
> From: Ben Hutchings [mailto:bhutchings@solarflare.com]
> Sent: Tuesday, June 19, 2012 7:42 PM
> To: Pandit, Parav
> Cc: davem@davemloft.net; netdev@vger.kernel.org
> Subject: RE: [PATCH] net: added support for 40GbE link.
> 
> On Tue, 2012-06-19 at 07:42 +0000, Parav.Pandit@Emulex.Com wrote:
> > > -----Original Message-----
> > > From: David Miller [mailto:davem@davemloft.net]
> > > Sent: Tuesday, June 19, 2012 1:05 PM
> > > To: Pandit, Parav
> > > Cc: bhutchings@solarflare.com; netdev@vger.kernel.org
> > > Subject: Re: [PATCH] net: added support for 40GbE link.
> > >
> > > From: <Parav.Pandit@Emulex.Com>
> > > Date: Tue, 19 Jun 2012 07:33:12 +0000
> > >
> > > > Should eventually all net driver should remove using SPEED_xxxxxx
> > > > and
> > > start using hard coded value of 10, 100, 1000, 20000?
> > >
> > > No, the ones that exist can stay, just no new ones.
> > >
> > So driver which supports 40Gpbs, 100Gbps should hardcode to 40000,
> 100000 respectively?
> 
> Right.
> 
> > > > That means ethtool_cmd_speed() should not be called in this function?
> > >
> > > Ben said that it must be called, what are you talking about?
> >
> > Sorry, I wanted to ask - Do you need switch case for speed like below new
> code or its should be speed independent code?
> >                 switch (ethtool_cmd_speed()) {
> >                 case SPEED_100:
> >                 case SPEED_10:
> >                         return DEFAULT_PRB_RETIRE_TOV;
> >                 default:
> >                         msec = 1;
> >                         div = ethtool_cmd_speed() / 1000;
> >                         break;
> >                 /*
> >                 }
> 
> I was thinking of something like:
> 
> 		u64 speed = ethtool_cmd_speed(&ecmd);
> 		if (speed < 1000 || speed == SPEED_UNKNOWN)
> 			return DEFAULT_PRB_RETIRE_TOV;
> 		msec = 1;
> 		div = speed / 1000;
> 
> 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.


      reply	other threads:[~2012-06-27  9:13 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-18 12:44 [PATCH] net: added support for 40GbE link Parav Pandit
2012-06-18 16:27 ` Rick Jones
2012-06-18 16:56   ` Ben Hutchings
2012-06-19  5:20   ` Parav.Pandit
2012-06-18 17:09 ` Ben Hutchings
2012-06-19  7:29   ` David Miller
2012-06-19  7:33     ` Parav.Pandit
2012-06-19  7:35       ` David Miller
2012-06-19  7:42         ` Parav.Pandit
2012-06-19 14:11           ` Ben Hutchings
2012-06-27  9:08             ` Parav.Pandit [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=bb3ccb69-cd3f-42e5-8596-ba11b9b5a43f@CMEXHTCAS1.ad.emulex.com \
    --to=parav.pandit@emulex.com \
    --cc=bhutchings@solarflare.com \
    --cc=davem@davemloft.net \
    --cc=netdev@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox