From: Sathya Perla <sathya.perla@emulex.com>
To: <netdev@vger.kernel.org>
Subject: [PATCH net-next 04/12] be2net: add speed reporting for 20G-KR interface
Date: Fri, 19 Sep 2014 15:46:54 +0530 [thread overview]
Message-ID: <1411121822-25842-5-git-send-email-sathya.perla@emulex.com> (raw)
In-Reply-To: <1411121822-25842-1-git-send-email-sathya.perla@emulex.com>
From: Vasundhara Volam <vasundhara.volam@emulex.com>
This patch adds speed reporting via ethtool for 20G KR2 interface on the
Skyhawk-R chip.
Signed-off-by: Vasundhara Volam <vasundhara.volam@emulex.com>
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
---
drivers/net/ethernet/emulex/benet/be_cmds.h | 1 +
drivers/net/ethernet/emulex/benet/be_ethtool.c | 7 +++++++
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/drivers/net/ethernet/emulex/benet/be_cmds.h b/drivers/net/ethernet/emulex/benet/be_cmds.h
index b064c50..eb5085d 100644
--- a/drivers/net/ethernet/emulex/benet/be_cmds.h
+++ b/drivers/net/ethernet/emulex/benet/be_cmds.h
@@ -1374,6 +1374,7 @@ enum {
#define BE_SUPPORTED_SPEED_100MBPS 2
#define BE_SUPPORTED_SPEED_1GBPS 4
#define BE_SUPPORTED_SPEED_10GBPS 8
+#define BE_SUPPORTED_SPEED_20GBPS 0x10
#define BE_SUPPORTED_SPEED_40GBPS 0x20
#define BE_AN_EN 0x2
diff --git a/drivers/net/ethernet/emulex/benet/be_ethtool.c b/drivers/net/ethernet/emulex/benet/be_ethtool.c
index 8297824..ec66f64 100644
--- a/drivers/net/ethernet/emulex/benet/be_ethtool.c
+++ b/drivers/net/ethernet/emulex/benet/be_ethtool.c
@@ -534,6 +534,13 @@ static u32 convert_to_et_setting(struct be_adapter *adapter, u32 if_speeds)
if (if_speeds & BE_SUPPORTED_SPEED_10GBPS)
val |= SUPPORTED_10000baseKX4_Full;
break;
+ case PHY_TYPE_KR2_20GB:
+ val |= SUPPORTED_Backplane;
+ if (if_speeds & BE_SUPPORTED_SPEED_10GBPS)
+ val |= SUPPORTED_10000baseKR_Full;
+ if (if_speeds & BE_SUPPORTED_SPEED_20GBPS)
+ val |= SUPPORTED_20000baseKR2_Full;
+ break;
case PHY_TYPE_KR_10GB:
val |= SUPPORTED_Backplane |
SUPPORTED_10000baseKR_Full;
--
1.7.1
next prev parent reply other threads:[~2014-09-19 10:14 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-19 10:16 [PATCH net-next 00/12] be2net: patch set Sathya Perla
2014-09-19 10:16 ` [PATCH net-next 01/12] be2net: fix a sparse warning in be_cmd_modify_eqd() Sathya Perla
2014-09-19 10:16 ` [PATCH net-next 02/12] be2net: fix sparse warnings in be_cmd_req_port_type{} Sathya Perla
2014-09-19 10:16 ` [PATCH net-next 03/12] be2net: add speed reporting for 40G/KR interface Sathya Perla
2014-09-19 10:16 ` Sathya Perla [this message]
2014-09-19 10:16 ` [PATCH net-next 05/12] be2net: remove return statements for void functions Sathya Perla
2014-09-19 10:16 ` [PATCH net-next 06/12] be2net: add blank line after declarations Sathya Perla
2014-09-19 10:16 ` [PATCH net-next 07/12] be2net: remove multiple blank lines Sathya Perla
2014-09-19 10:16 ` [PATCH net-next 08/12] be2net: insert a blank line after function/struct//enum definitions Sathya Perla
2014-09-19 10:16 ` [PATCH net-next 09/12] be2net: remove unnecessary blank lines after an open brace Sathya Perla
2014-09-19 10:17 ` [PATCH net-next 10/12] be2net: remove space after typecasts Sathya Perla
2014-09-19 10:17 ` [PATCH net-next 11/12] be2net: remove multiple assignments on a single line Sathya Perla
2014-09-19 10:17 ` [PATCH net-next 12/12] be2net: fix alignment on line wrap Sathya Perla
2014-09-22 19:01 ` [PATCH net-next 00/12] be2net: patch set David Miller
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=1411121822-25842-5-git-send-email-sathya.perla@emulex.com \
--to=sathya.perla@emulex.com \
--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;
as well as URLs for NNTP newsgroup(s).