From: Ben Hutchings <ben@decadent.org.uk>
To: Hariprasad S <hariprasad@chelsio.com>
Cc: netdev@vger.kernel.org, davem@davemloft.net, leedom@chelsio.com,
anish@chelsio.com, nirranjan@chelsio.com, kumaras@chelsio.com
Subject: Re: [PATCH 3/3] ethtool: Add support to get expansion ROM version in ethtool getdrvinfo
Date: Sun, 05 Apr 2015 04:05:23 +0100 [thread overview]
Message-ID: <1428203123.11260.161.camel@decadent.org.uk> (raw)
In-Reply-To: <20150325083722.GA5303@hariprasad-pc.asicdesigners.com>
[-- Attachment #1: Type: text/plain, Size: 2469 bytes --]
On Wed, 2015-03-25 at 14:11 +0530, Hariprasad S wrote:
> On Wed, Feb 04, 2015 at 18:19:36 +0530, Hariprasad Shenai wrote:
> > Rename the reserved1 field of ethtool_drvinfo to erom_version, and use it to get
> > the expansion ROM version of the adapter.
> >
> > Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
> > ---
> > ethtool-copy.h | 3 ++-
> > ethtool.c | 2 ++
> > 2 files changed, 4 insertions(+), 1 deletions(-)
> >
> > diff --git a/ethtool-copy.h b/ethtool-copy.h
> > index 61b78fc..e2df0e5 100644
> > --- a/ethtool-copy.h
> > +++ b/ethtool-copy.h
> > @@ -148,6 +148,7 @@ static __inline__ __u32 ethtool_cmd_speed(const struct ethtool_cmd *ep)
> > * not be an empty string.
> > * @version: Driver version string; may be an empty string
> > * @fw_version: Firmware version string; may be an empty string
> > + * @erom_version: Expansion ROM version string; may be an empty string
> > * @bus_info: Device bus address. This should match the dev_name()
> > * string for the underlying bus device, if there is one. May be
> > * an empty string.
> > @@ -176,7 +177,7 @@ struct ethtool_drvinfo {
> > char version[32];
> > char fw_version[ETHTOOL_FWVERS_LEN];
> > char bus_info[ETHTOOL_BUSINFO_LEN];
> > - char reserved1[32];
> > + char erom_version[32];
> > char reserved2[12];
> > __u32 n_priv_flags;
> > __u32 n_stats;
> > diff --git a/ethtool.c b/ethtool.c
> > index bf583f3..b7d2206 100644
> > --- a/ethtool.c
> > +++ b/ethtool.c
> > @@ -701,6 +701,7 @@ static int dump_drvinfo(struct ethtool_drvinfo *info)
> > "driver: %.*s\n"
> > "version: %.*s\n"
> > "firmware-version: %.*s\n"
> > + "expansion-rom-version: %.*s\n"
> > "bus-info: %.*s\n"
> > "supports-statistics: %s\n"
> > "supports-test: %s\n"
> > @@ -710,6 +711,7 @@ static int dump_drvinfo(struct ethtool_drvinfo *info)
> > (int)sizeof(info->driver), info->driver,
> > (int)sizeof(info->version), info->version,
> > (int)sizeof(info->fw_version), info->fw_version,
> > + (int)sizeof(info->erom_version), info->erom_version,
> > (int)sizeof(info->bus_info), info->bus_info,
> > info->n_stats ? "yes" : "no",
> > info->testinfo_len ? "yes" : "no",
> > --
> > 1.7.1
> >
>
>
> Hi Ben,
>
> Can you pull this one to the ethtool repo?
Applied, thanks.
Ben.
--
Ben Hutchings
Quantity is no substitute for quality, but it's the only one we've got.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 811 bytes --]
prev parent reply other threads:[~2015-04-05 3:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-04 12:49 [PATCH net-next 0/3] Add support in ethtool to get expansion ROM version Hariprasad Shenai
2015-02-04 12:49 ` [PATCH net-next 1/3] ethtool: rename reserved1 memeber in ethtool_drvinfo for " Hariprasad Shenai
2015-02-08 5:57 ` David Miller
2015-02-04 12:49 ` [PATCH net-next 2/3] cxgb4: Add support in cxgb4 to get expansion rom version via ethtool Hariprasad Shenai
2015-02-04 12:49 ` [PATCH 3/3] ethtool: Add support to get expansion ROM version in ethtool getdrvinfo Hariprasad Shenai
2015-03-25 8:41 ` Hariprasad S
2015-04-05 3:05 ` 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=1428203123.11260.161.camel@decadent.org.uk \
--to=ben@decadent.org.uk \
--cc=anish@chelsio.com \
--cc=davem@davemloft.net \
--cc=hariprasad@chelsio.com \
--cc=kumaras@chelsio.com \
--cc=leedom@chelsio.com \
--cc=netdev@vger.kernel.org \
--cc=nirranjan@chelsio.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).