Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1665365
| Path | csiph.com!news.redatomik.org!weretis.net!feeder4.news.weretis.net!news.unit0.net!news.panservice.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Andrew Lunn <andrew@lunn.ch> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH V2 net-next 7/8] net: hns3: Add Ethtool support to HNS3 driver |
| Date | Wed, 14 Jun 2017 04:30:01 +0200 |
| Message-ID | <tS6ed-7FK-3@gated-at.bofh.it> (permalink) |
| References | <tS3gl-5Od-5@gated-at.bofh.it> <tS3gm-5Od-23@gated-at.bofh.it> |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| User-Agent | Mutt/1.5.21 (2010-09-15) |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 23 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | davem@davemloft.net, yisen.zhuang@huawei.com, huangdaode@hisilicon.com, lipeng321@huawei.com, mehta.salil.lnk@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linuxarm@huawei.com |
| X-Original-Date | Wed, 14 Jun 2017 04:19:50 +0200 |
| X-Original-Message-ID | <20170614021950.GH23384@lunn.ch> |
| X-Original-References | <20170613231035.494020-1-salil.mehta@huawei.com> <20170613231035.494020-8-salil.mehta@huawei.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1665365 |
Show key headers only | View raw
> + switch (media_type) {
> + case HNAE3_MEDIA_TYPE_FIBER:
> + cmd->base.port = PORT_FIBRE;
> + supported_caps = HNS3_LM_FIBRE_BIT | HNS3_LM_AUTONEG_BIT |
> + HNS3_LM_PAUSE_BIT | HNS3_LM_40000BASELR4_FULL_BIT |
> + HNS3_LM_10000BASEKR_FULL_BIT |
> + HNS3_LM_1000BASET_FULL_BIT;
> + /* TODO: add speed 100G/50G/25G when ethtool and linux kernel
> + * is ready to support.
Linux already has:
linux/ethtool.h: ETHTOOL_LINK_MODE_25000baseCR_Full_BIT = 31,
linux/ethtool.h: ETHTOOL_LINK_MODE_25000baseKR_Full_BIT = 32,
linux/ethtool.h: ETHTOOL_LINK_MODE_25000baseSR_Full_BIT = 33,
linux/ethtool.h: ETHTOOL_LINK_MODE_50000baseCR2_Full_BIT = 34,
linux/ethtool.h: ETHTOOL_LINK_MODE_50000baseKR2_Full_BIT = 35,
linux/ethtool.h: ETHTOOL_LINK_MODE_100000baseKR4_Full_BIT = 36,
linux/ethtool.h: ETHTOOL_LINK_MODE_100000baseSR4_Full_BIT = 37,
linux/ethtool.h: ETHTOOL_LINK_MODE_100000baseCR4_Full_BIT = 38,
linux/ethtool.h: ETHTOOL_LINK_MODE_100000baseLR4_ER4_Full_BIT = 39,
Andrew
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH V2 net-next 7/8] net: hns3: Add Ethtool support to HNS3 driver Salil Mehta <salil.mehta@huawei.com> - 2017-06-14 01:20 +0200
Re: [PATCH V2 net-next 7/8] net: hns3: Add Ethtool support to HNS3 driver Stephen Hemminger <stephen@networkplumber.org> - 2017-06-14 02:00 +0200
RE: [PATCH V2 net-next 7/8] net: hns3: Add Ethtool support to HNS3 driver Salil Mehta <salil.mehta@huawei.com> - 2017-06-17 13:10 +0200
Re: [PATCH V2 net-next 7/8] net: hns3: Add Ethtool support to HNS3 driver Andrew Lunn <andrew@lunn.ch> - 2017-06-14 04:30 +0200
RE: [PATCH V2 net-next 7/8] net: hns3: Add Ethtool support to HNS3 driver Salil Mehta <salil.mehta@huawei.com> - 2017-06-17 13:30 +0200
Re: [PATCH V2 net-next 7/8] net: hns3: Add Ethtool support to HNS3 driver Andrew Lunn <andrew@lunn.ch> - 2017-06-14 04:40 +0200
RE: [PATCH V2 net-next 7/8] net: hns3: Add Ethtool support to HNS3 driver Salil Mehta <salil.mehta@huawei.com> - 2017-06-17 14:00 +0200
csiph-web