DPDK patches and discussions
 help / color / mirror / Atom feed
From: Shijith Thotton <shijith.thotton@caviumnetworks.com>
To: Ferruh Yigit <ferruh.yigit@intel.com>
Cc: dev@dpdk.org
Subject: [dpdk-dev] [PATCH 1/2] net/liquidio: add support for 25G link speed
Date: Wed, 19 Apr 2017 12:56:06 +0530	[thread overview]
Message-ID: <1492586767-561-2-git-send-email-shijith.thotton@caviumnetworks.com> (raw)
In-Reply-To: <1492586767-561-1-git-send-email-shijith.thotton@caviumnetworks.com>

Add case to handle 25G link speed and thereby support
LiquidIO II CN23XX 225SV (2x25G) adapter.

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
---
 drivers/net/liquidio/lio_ethdev.c | 3 +++
 drivers/net/liquidio/lio_ethdev.h | 3 ++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/net/liquidio/lio_ethdev.c b/drivers/net/liquidio/lio_ethdev.c
index 0c78afb..436d25b 100644
--- a/drivers/net/liquidio/lio_ethdev.c
+++ b/drivers/net/liquidio/lio_ethdev.c
@@ -937,6 +937,9 @@ struct rte_lio_xstats_name_off {
 	case LIO_LINK_SPEED_10000:
 		link.link_speed = ETH_SPEED_NUM_10G;
 		break;
+	case LIO_LINK_SPEED_25000:
+		link.link_speed = ETH_SPEED_NUM_25G;
+		break;
 	default:
 		link.link_speed = ETH_SPEED_NUM_NONE;
 		link.link_duplex = ETH_LINK_HALF_DUPLEX;
diff --git a/drivers/net/liquidio/lio_ethdev.h b/drivers/net/liquidio/lio_ethdev.h
index ee30615..655c201 100644
--- a/drivers/net/liquidio/lio_ethdev.h
+++ b/drivers/net/liquidio/lio_ethdev.h
@@ -52,7 +52,8 @@ struct lio_dev_ctrl_cmd {
 
 enum lio_bus_speed {
 	LIO_LINK_SPEED_UNKNOWN  = 0,
-	LIO_LINK_SPEED_10000    = 10000
+	LIO_LINK_SPEED_10000    = 10000,
+	LIO_LINK_SPEED_25000    = 25000
 };
 
 struct octeon_if_cfg_info {
-- 
1.8.3.1

  reply	other threads:[~2017-04-19  7:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-19  7:26 [dpdk-dev] [PATCH 0/2] add support for 25G variant of CN23XX adapter Shijith Thotton
2017-04-19  7:26 ` Shijith Thotton [this message]
2017-04-19  7:26 ` [dpdk-dev] [PATCH 2/2] doc: update supported liquidio adapters Shijith Thotton
2017-04-19 11:31 ` [dpdk-dev] [PATCH 0/2] add support for 25G variant of CN23XX adapter Ferruh Yigit

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=1492586767-561-2-git-send-email-shijith.thotton@caviumnetworks.com \
    --to=shijith.thotton@caviumnetworks.com \
    --cc=dev@dpdk.org \
    --cc=ferruh.yigit@intel.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).