* [PATCH ethtool] ethtool: Add string/define to display Port Type for Backplane Ethernet
@ 2013-08-02 5:06 Somnath Kotur
2013-08-02 12:40 ` Ben Hutchings
0 siblings, 1 reply; 2+ messages in thread
From: Somnath Kotur @ 2013-08-02 5:06 UTC (permalink / raw)
To: bhutchings; +Cc: netdev, Somnath Kotur
Signed-off-by: Somnath Kotur <somnath.kotur@emulex.com>
---
ethtool-copy.h | 1 +
ethtool.c | 3 +++
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/ethtool-copy.h b/ethtool-copy.h
index b5515c2..33ff7d3 100644
--- a/ethtool-copy.h
+++ b/ethtool-copy.h
@@ -989,6 +989,7 @@ enum ethtool_sfeatures_retval_bits {
#define PORT_FIBRE 0x03
#define PORT_BNC 0x04
#define PORT_DA 0x05
+#define PORT_BACKPLANE 0x06
#define PORT_NONE 0xef
#define PORT_OTHER 0xff
diff --git a/ethtool.c b/ethtool.c
index b24b572..4db42b3 100644
--- a/ethtool.c
+++ b/ethtool.c
@@ -625,6 +625,9 @@ static int dump_ecmd(struct ethtool_cmd *ep)
case PORT_DA:
fprintf(stdout, "Direct Attach Copper\n");
break;
+ case PORT_BACKPLANE:
+ fprintf(stdout, "BackPlane\n");
+ break;
case PORT_NONE:
fprintf(stdout, "None\n");
break;
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH ethtool] ethtool: Add string/define to display Port Type for Backplane Ethernet
2013-08-02 5:06 [PATCH ethtool] ethtool: Add string/define to display Port Type for Backplane Ethernet Somnath Kotur
@ 2013-08-02 12:40 ` Ben Hutchings
0 siblings, 0 replies; 2+ messages in thread
From: Ben Hutchings @ 2013-08-02 12:40 UTC (permalink / raw)
To: Somnath Kotur; +Cc: netdev
On Fri, 2013-08-02 at 10:36 +0530, Somnath Kotur wrote:
> Signed-off-by: Somnath Kotur <somnath.kotur@emulex.com>
> ---
> ethtool-copy.h | 1 +
> ethtool.c | 3 +++
> 2 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/ethtool-copy.h b/ethtool-copy.h
> index b5515c2..33ff7d3 100644
> --- a/ethtool-copy.h
> +++ b/ethtool-copy.h
> @@ -989,6 +989,7 @@ enum ethtool_sfeatures_retval_bits {
> #define PORT_FIBRE 0x03
> #define PORT_BNC 0x04
> #define PORT_DA 0x05
> +#define PORT_BACKPLANE 0x06
> #define PORT_NONE 0xef
> #define PORT_OTHER 0xff
>
Needs to be updated in the kernel first.
> diff --git a/ethtool.c b/ethtool.c
> index b24b572..4db42b3 100644
> --- a/ethtool.c
> +++ b/ethtool.c
> @@ -625,6 +625,9 @@ static int dump_ecmd(struct ethtool_cmd *ep)
> case PORT_DA:
> fprintf(stdout, "Direct Attach Copper\n");
> break;
> + case PORT_BACKPLANE:
> + fprintf(stdout, "BackPlane\n");
> + break;
Why the capital P? I don't think I've seen it written that way before.
Ben.
> case PORT_NONE:
> fprintf(stdout, "None\n");
> break;
--
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-08-02 12:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-02 5:06 [PATCH ethtool] ethtool: Add string/define to display Port Type for Backplane Ethernet Somnath Kotur
2013-08-02 12:40 ` Ben Hutchings
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox