lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 2 Aug 2013 10:36:52 +0530
From:	Somnath Kotur <somnath.kotur@...lex.com>
To:	<bhutchings@...arflare.com>
CC:	<netdev@...r.kernel.org>, Somnath Kotur <somnath.kotur@...lex.com>
Subject: [PATCH ethtool] ethtool: Add string/define to display Port Type for Backplane Ethernet

Signed-off-by: Somnath Kotur <somnath.kotur@...lex.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

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ