From: Ido Schimmel <idosch@mellanox.com>
To: Saeed Mahameed <saeedm@mellanox.com>
Cc: "David S. Miller" <davem@davemloft.net>, <netdev@vger.kernel.org>,
"Or Gerlitz" <ogerlitz@mellanox.com>,
Tal Alon <talal@mellanox.com>,
"Eran Ben Elisha" <eranbe@mellanox.com>,
Eugenia Emantayev <eugenia@mellanox.com>, <jiri@mellanox.com>,
<eladr@mellanox.com>
Subject: Re: [PATCH net-next 12/12] net/mlx5e: Disable link up on INIT HCA command
Date: Sat, 23 Apr 2016 19:00:23 +0300 [thread overview]
Message-ID: <20160423160023.GA15013@colbert.Home> (raw)
In-Reply-To: <1461351647-27412-13-git-send-email-saeedm@mellanox.com>
Hi,
Fri, Apr 22, 2016 at 10:00:47PM IDT, saeedm@mellanox.com wrote:
>From: Eran Ben Elisha <eranbe@mellanox.com>
>
>Disable link up when initializing the HCA. Link up/down will be changed
>using (Ports Administrative and Operational Status Register) PAOS
>commands.
>
>If link layer is Ethernet, up/down the link in ndo_open/stop. If link
>layer is IB, up/down the link as part of the mlx5 IB add/remove flow.
>
>Before this patch the link was up when the HCA was initialized, now the
>driver will manage the link.
>
>Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
>Signed-off-by: Eugenia Emantayev <eugenia@mellanox.com>
>Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
>---
mutt suggests I sent you the following patches a while ago:
net/mlx5e: Set port administrative status in ndo_{open, close}
net/mlx5e: Initialize port administrative status to down
So I'm curious as to why you didn't follow up on them and instead came
up with this patch.
When I initially debugged this I pointed you to the fact that the
firmware also needs to be patched, as setting the administrative status
down via PAOS doesn't really do anything. The operational status will
remain up. I just tested this patchset with the latest release firmware
(12.14.2036) and I'm bumping into the same problem.
Until this is properly fixed the mlx5 driver is blacklisted in our test:
https://github.com/jpirko/lnst/blob/master/recipes/switchdev/basic-001-links.py#L19
Also, why is this directed at net-next?
> drivers/infiniband/hw/mlx5/main.c | 11 +++++++++++
> drivers/infiniband/hw/mlx5/mlx5_ib.h | 5 +++++
> drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c | 4 ++--
> .../net/ethernet/mellanox/mlx5/core/en_ethtool.c | 4 ++--
> drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 4 ++++
> drivers/net/ethernet/mellanox/mlx5/core/main.c | 4 ++++
> drivers/net/ethernet/mellanox/mlx5/core/port.c | 5 +++--
> include/linux/mlx5/port.h | 3 ++-
> 8 files changed, 33 insertions(+), 7 deletions(-)
>
[...]
>diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c b/drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c
>index b2db180..f083797 100644
>--- a/drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c
>+++ b/drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c
>@@ -202,12 +202,12 @@ static int mlx5e_dcbnl_ieee_setpfc(struct net_device *dev,
>
> mlx5_query_port_admin_status(mdev, &ps);
> if (ps == MLX5_PORT_UP)
>- mlx5_set_port_admin_status(mdev, MLX5_PORT_DOWN);
>+ mlx5_set_port_admin_status(mdev, MLX5_PORT_DOWN, 1);
Why is this needed? The link doesn't need to go through training when
setting PFC. It's only needed for PAUSE frames when auto-negotiation is
on, but you don't support that anyway.
Thanks.
>
> ret = mlx5_set_port_pfc(mdev, pfc->pfc_en, pfc->pfc_en);
>
> if (ps == MLX5_PORT_UP)
>- mlx5_set_port_admin_status(mdev, MLX5_PORT_UP);
>+ mlx5_set_port_admin_status(mdev, MLX5_PORT_UP, 1);
>
> return ret;
> }
next prev parent reply other threads:[~2016-04-23 16:17 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-22 19:00 [PATCH net-next 00/12] Mellanox 100G extending mlx5 ethtool support Saeed Mahameed
2016-04-22 19:00 ` [PATCH net-next 01/12] net/mlx5e: Report additional error statistics in get stats ndo Saeed Mahameed
2016-04-22 19:00 ` [PATCH net-next 02/12] net/mlx5e: Statistics handling refactoring Saeed Mahameed
2016-04-25 10:58 ` David Laight
2016-04-25 12:12 ` Saeed Mahameed
2016-04-22 19:00 ` [PATCH net-next 03/12] net/mlx5e: Rename VPort counters Saeed Mahameed
2016-04-22 19:00 ` [PATCH net-next 04/12] net/mlx5e: Add per priority group to PPort counters Saeed Mahameed
2016-04-22 19:00 ` [PATCH net-next 05/12] net/mlx5e: Add link down events counter Saeed Mahameed
2016-04-22 19:00 ` [PATCH net-next 06/12] net/mlx5e: Improve set features ndo resiliency Saeed Mahameed
2016-04-22 19:00 ` [PATCH net-next 07/12] net/mlx5e: Add support for RXALL netdev feature Saeed Mahameed
2016-04-22 19:00 ` [PATCH net-next 08/12] net/mlx5e: Add ethtool support for interface identify (LED blinking) Saeed Mahameed
2016-04-22 19:00 ` [PATCH net-next 09/12] net/mlx5e: Add ethtool support for dump module EEPROM Saeed Mahameed
2016-04-22 19:00 ` [PATCH net-next 10/12] net/mlx5e: Add ethtool support for rxvlan-offload (vlan stripping) Saeed Mahameed
2016-04-22 19:00 ` [PATCH net-next 11/12] net/mlx5e: Fix checksum handling for non-stripped vlan packets Saeed Mahameed
2016-04-22 19:00 ` [PATCH net-next 12/12] net/mlx5e: Disable link up on INIT HCA command Saeed Mahameed
2016-04-23 16:00 ` Ido Schimmel [this message]
2016-04-23 20:21 ` Saeed Mahameed
2016-04-23 20:28 ` Or Gerlitz
2016-04-23 21:24 ` Saeed Mahameed
2016-04-23 21:28 ` Or Gerlitz
2016-04-23 22:03 ` Ido Schimmel
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=20160423160023.GA15013@colbert.Home \
--to=idosch@mellanox.com \
--cc=davem@davemloft.net \
--cc=eladr@mellanox.com \
--cc=eranbe@mellanox.com \
--cc=eugenia@mellanox.com \
--cc=jiri@mellanox.com \
--cc=netdev@vger.kernel.org \
--cc=ogerlitz@mellanox.com \
--cc=saeedm@mellanox.com \
--cc=talal@mellanox.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).